test
This commit is contained in:
parent
6b6e2a0ed2
commit
87d7461c09
@ -42,13 +42,28 @@
|
|||||||
accept_hostkey: yes
|
accept_hostkey: yes
|
||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
- name: Inject SSH private key into custom_files/id_rsa
|
# Debug repo_core_dir existence and permissions
|
||||||
ansible.builtin.copy:
|
- name: Check if core repo dir exists and permissions
|
||||||
content: "{{ ssh_private_key }}"
|
ansible.builtin.stat:
|
||||||
dest: "{{ repo_core_dir }}/custom_files/id_rsa"
|
path: "{{ repo_core_dir }}"
|
||||||
mode: '0600'
|
register: core_dir_stat
|
||||||
|
|
||||||
- name: List contents of core repo directory for debug
|
- name: Debug core_dir_stat
|
||||||
|
debug:
|
||||||
|
var: core_dir_stat
|
||||||
|
|
||||||
|
# Debug repo_env_dir existence and permissions
|
||||||
|
- name: Check if env repo dir exists and permissions
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ repo_env_dir }}"
|
||||||
|
register: env_dir_stat
|
||||||
|
|
||||||
|
- name: Debug env_dir_stat
|
||||||
|
debug:
|
||||||
|
var: env_dir_stat
|
||||||
|
|
||||||
|
# List contents of core repo directory for debug
|
||||||
|
- name: List contents of core repo directory
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: ls -la "{{ repo_core_dir }}"
|
cmd: ls -la "{{ repo_core_dir }}"
|
||||||
register: repo_core_ls
|
register: repo_core_ls
|
||||||
@ -57,6 +72,44 @@
|
|||||||
debug:
|
debug:
|
||||||
var: repo_core_ls.stdout_lines
|
var: repo_core_ls.stdout_lines
|
||||||
|
|
||||||
|
# List contents of env repo directory for debug
|
||||||
|
- name: List contents of env repo directory
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: ls -la "{{ repo_env_dir }}"
|
||||||
|
register: repo_env_ls
|
||||||
|
|
||||||
|
- name: Debug repo_env_ls
|
||||||
|
debug:
|
||||||
|
var: repo_env_ls.stdout_lines
|
||||||
|
|
||||||
|
- name: List repo core directory tree (recursive)
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: find "{{ repo_core_dir }}"
|
||||||
|
register: repo_core_tree
|
||||||
|
failed_when: false
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Debug repo_core_tree
|
||||||
|
debug:
|
||||||
|
var: repo_core_tree.stdout_lines
|
||||||
|
|
||||||
|
- name: List repo env directory tree (recursive)
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: find "{{ repo_env_dir }}"
|
||||||
|
register: repo_env_tree
|
||||||
|
failed_when: false
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Debug repo_env_tree
|
||||||
|
debug:
|
||||||
|
var: repo_env_tree.stdout_lines
|
||||||
|
|
||||||
|
- name: Inject SSH private key into custom_files/id_rsa
|
||||||
|
ansible.builtin.copy:
|
||||||
|
content: "{{ ssh_private_key }}"
|
||||||
|
dest: "{{ repo_core_dir }}/custom_files/id_rsa"
|
||||||
|
mode: '0600'
|
||||||
|
|
||||||
- name: Build the Docker image from core repo
|
- name: Build the Docker image from core repo
|
||||||
community.docker.docker_image:
|
community.docker.docker_image:
|
||||||
name: ansible-pulumi
|
name: ansible-pulumi
|
||||||
|
Loading…
Reference in New Issue
Block a user