Tweaking Ansible playbook and Gitea workflow.
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Successful in 13s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Failing after 55s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Failing after 57s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Failing after 57s
Gitea Branch PR & Ansible Deployment / PR Merge (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (benedikta) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rikku) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rinoa) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Successful in 13s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Failing after 55s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Failing after 57s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Failing after 57s
Gitea Branch PR & Ansible Deployment / PR Merge (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (benedikta) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rikku) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rinoa) (push) Has been skipped
This commit is contained in:
@@ -10,6 +10,7 @@ on:
|
||||
- 'inventory/hosts.yml'
|
||||
- 'host_vars/**'
|
||||
- 'group_vars/**'
|
||||
- '**/tar-valon_config_deploy.yml'
|
||||
- '**/gitea_tar-valon_ansible_deploy.yml'
|
||||
|
||||
env:
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
register: host_files
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
run_on_delegate: true
|
||||
changed_when: false # ensures this task never shows as "changed"
|
||||
|
||||
- name: Build list of unique destination directories
|
||||
ansible.builtin.set_fact:
|
||||
@@ -32,6 +32,7 @@
|
||||
| unique
|
||||
| list
|
||||
}}
|
||||
changed_when: false # computing vars does not constitute a change
|
||||
|
||||
tasks:
|
||||
- name: Ensure destination directories exist (unique set)
|
||||
@@ -48,7 +49,7 @@
|
||||
src: "{{ item.path }}"
|
||||
dest: >-
|
||||
{{ appdata_base_path }}/{{ item.path
|
||||
| relpath(template_base_path + '/' + inventory_hostname)
|
||||
| relpath(template_base_path ~ '/' ~ inventory_hostname)
|
||||
| regex_replace('\.j2$', '') }}
|
||||
mode: '0644'
|
||||
loop: "{{ host_files.files }}"
|
||||
@@ -61,7 +62,7 @@
|
||||
src: "{{ item.path }}"
|
||||
dest: >-
|
||||
{{ appdata_base_path }}/{{ item.path
|
||||
| relpath(template_base_path + '/' + inventory_hostname) }}
|
||||
| relpath(template_base_path ~ '/' ~ inventory_hostname) }}
|
||||
mode: '0644'
|
||||
remote_src: false
|
||||
loop: "{{ host_files.files }}"
|
||||
|
||||
Reference in New Issue
Block a user