...
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Successful in 28s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Failing after 1m26s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Failing after 1m28s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Failing after 1m28s
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 28s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Failing after 1m26s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Failing after 1m28s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Failing after 1m28s
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:
@@ -1,6 +1,5 @@
|
|||||||
{% set vault_addr = 'https://vault.trez.wtf' %}
|
{% set vault_addr = 'https://vault.trez.wtf' %}
|
||||||
{% set secrets_path = 'rinoa-docker/env' %}
|
{% set secrets_path = 'rinoa-docker/env' %}
|
||||||
|
|
||||||
urls:
|
urls:
|
||||||
- gotify://gotify/{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['APPRISE_GOTIFY_TOKEN'] }}
|
- gotify://gotify/{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['APPRISE_GOTIFY_TOKEN'] }}
|
||||||
- hassio://192.168.1.252/{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['APPRISE_HA_TOKEN'] }}
|
- hassio://192.168.1.252/{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['APPRISE_HA_TOKEN'] }}
|
||||||
|
|||||||
+20
-15
@@ -29,24 +29,29 @@
|
|||||||
remote_uid: "{{ remote_user_info.stdout_lines[0] | default(default_owner) | int }}"
|
remote_uid: "{{ remote_user_info.stdout_lines[0] | default(default_owner) | int }}"
|
||||||
remote_gid: "{{ remote_user_info.stdout_lines[1] | default(default_group) | int }}"
|
remote_gid: "{{ remote_user_info.stdout_lines[1] | default(default_group) | int }}"
|
||||||
|
|
||||||
|
- name: Initialize file metadata with become info
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
file_metadata_with_become: {}
|
||||||
|
|
||||||
- name: Annotate file metadata with become requirement
|
- name: Annotate file metadata with become requirement
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
file_metadata_with_become: >-
|
file_metadata_with_become: >-
|
||||||
{{
|
{{
|
||||||
(file_metadata | default({})) | dict2items
|
file_metadata_with_become | combine({
|
||||||
| map('combine', {
|
item.key: item.value | combine({
|
||||||
'value': item.value | combine({
|
'owner': (item.value.owner | default(default_owner) | string),
|
||||||
'owner': (item.value.owner | default(default_owner) | string),
|
'group': (item.value.group | default(default_group) | string),
|
||||||
'group': (item.value.group | default(default_group) | string),
|
'mode': (item.value.mode | default(default_mode) | string),
|
||||||
'mode': (item.value.mode | default(default_mode) | string),
|
'become': (
|
||||||
'become': (
|
((item.value.owner | default(default_owner) | int) != remote_uid) or
|
||||||
((item.value.owner | default(default_owner) | int) != remote_uid) or
|
((item.value.group | default(default_group) | int) != remote_gid)
|
||||||
((item.value.group | default(default_group) | int) != remote_gid)
|
)
|
||||||
)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
| items2dict
|
})
|
||||||
}}
|
}}
|
||||||
|
loop: "{{ file_metadata | dict2items }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
- name: Find all files for this host (control node)
|
- name: Find all files for this host (control node)
|
||||||
ansible.builtin.find:
|
ansible.builtin.find:
|
||||||
@@ -76,7 +81,7 @@
|
|||||||
deploy_files: >-
|
deploy_files: >-
|
||||||
{{
|
{{
|
||||||
host_files.files
|
host_files.files
|
||||||
| map('extract', attribute='path')
|
| map(attribute='path')
|
||||||
| map('community.general.dict_kv', item => {
|
| map('community.general.dict_kv', item => {
|
||||||
'src': item,
|
'src': item,
|
||||||
'dest': appdata_base_path ~ '/' ~ (item | relpath(template_base_path ~ '/' ~ inventory_hostname) | regex_replace('\.j2$', '')),
|
'dest': appdata_base_path ~ '/' ~ (item | relpath(template_base_path ~ '/' ~ inventory_hostname) | regex_replace('\.j2$', '')),
|
||||||
@@ -104,10 +109,10 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Print concise become true list
|
- name: Print concise become list
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: >-
|
msg: >-
|
||||||
Files requiring become=true:
|
Files requiring become:
|
||||||
{% set found = false %}
|
{% set found = false %}
|
||||||
{% for f in deploy_files if f.become %}
|
{% for f in deploy_files if f.become %}
|
||||||
{% set found = true %}
|
{% set found = true %}
|
||||||
|
|||||||
Reference in New Issue
Block a user