File tree 5 files changed +17
-12
lines changed
5 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ jobs:
104
104
base_url : https://vault.bitwarden.com
105
105
secrets : |
106
106
267abc49-f755-4c88-a2a8-b23d00503e31 > arrs_host
107
+ d9924181-b061-44e0-b7b9-b264004791eb > ag_main_host
107
108
e74d1f67-c909-4a2e-b6fc-b23e001dfa4a > ai_host
108
109
6f9cef86-eb39-4e05-8c5b-b23e001e6170 > arm_host
109
110
52512c15-b474-42c3-9835-b23e001edf35 > auth_host
@@ -121,6 +122,7 @@ jobs:
121
122
run : |
122
123
cat <<EOF > ansible/hosts.ini
123
124
[iac]
125
+ dns.lan ansible_host=${{ steps.bitwarden-secrets.outputs.ag_main_host }} ansible_user=mafyuh
124
126
arrs.lan ansible_host=${{ steps.bitwarden-secrets.outputs.arrs_host }} ansible_user=mafyuh
125
127
ai.lan ansible_host=${{ steps.bitwarden-secrets.outputs.ai_host }} ansible_user=mafyuh ansible_port=2424
126
128
arm.lan ansible_host=${{ steps.bitwarden-secrets.outputs.arm_host }} ansible_user=ubuntu ansible_port=2424
Original file line number Diff line number Diff line change 38
38
base_url : https://vault.bitwarden.com
39
39
secrets : |
40
40
267abc49-f755-4c88-a2a8-b23d00503e31 > arrs_host
41
+ d9924181-b061-44e0-b7b9-b264004791eb > ag_main_host
41
42
e74d1f67-c909-4a2e-b6fc-b23e001dfa4a > ai_host
42
43
6f9cef86-eb39-4e05-8c5b-b23e001e6170 > arm_host
43
44
52512c15-b474-42c3-9835-b23e001edf35 > auth_host
59
60
ai.lan ansible_host=${{ steps.bitwarden-secrets.outputs.ai_host }} ansible_user=mafyuh ansible_port=2424
60
61
arm.lan ansible_host=${{ steps.bitwarden-secrets.outputs.arm_host }} ansible_user=ubuntu ansible_port=2424
61
62
auth.lan ansible_host=${{ steps.bitwarden-secrets.outputs.auth_host }} ansible_user=mafyuh
63
+ dns.lan ansible_host=${{ steps.bitwarden-secrets.outputs.ag_main_host }} ansible_user=mafyuh
62
64
jf.lan ansible_host=${{ steps.bitwarden-secrets.outputs.jf_host }} ansible_user=mafyuh
63
65
kasm.lan ansible_host=${{ steps.bitwarden-secrets.outputs.kasm_host }} ansible_user=mafyuh
64
66
netboot.lan ansible_host=${{ steps.bitwarden-secrets.outputs.netboot_host }} ansible_user=mafyuh
Original file line number Diff line number Diff line change 1
1
[ ![ Yamllint] ( https://git.mafyuh.dev/mafyuh/iac/badges/workflows/yamllint.yml/badge.svg )] ( https://git.mafyuh.dev/mafyuh/iac/actions )
2
- [ ![ Yamllint] ( https://git.mafyuh.dev/mafyuh/iac/badges/workflows/CD.yml/badge.svg )] ( https://git.mafyuh.dev/mafyuh/iac/actions )
2
+ [ ![ CD] ( https://git.mafyuh.dev/mafyuh/iac/badges/workflows/CD.yml/badge.svg )] ( https://git.mafyuh.dev/mafyuh/iac/actions )
3
+ [ ![ Ansible] ( https://git.mafyuh.dev/mafyuh/iac/badges/workflows/ansible-playbooks.yml/badge.svg )] ( https://git.mafyuh.dev/mafyuh/iac/actions )
3
4
[ ![ Tofu] ( https://git.mafyuh.dev/mafyuh/iac/badges/workflows/tofu.yml/badge.svg )] ( https://git.mafyuh.dev/mafyuh/iac/actions )
4
5
[ ![ Renovate] ( https://git.mafyuh.dev/renovatebot/renovate/badges/workflows/renovate.yml/badge.svg )] ( https://git.mafyuh.dev/renovatebot/renovate/actions )
5
6
[ ![ Pulls] ( https://git.mafyuh.dev/mafyuh/iac/badges/pulls.svg )] ( https://git.mafyuh.dev/mafyuh/iac/pulls )
Original file line number Diff line number Diff line change 2
2
hosts : " {{ target_host }}"
3
3
vars :
4
4
repo_path : " /home/{{ ansible_user }}/iac/docker/{{ folder }}"
5
- secrets_mapping_file : " /home/{{ ansible_user }}/iac/secret-mappings.yml"
5
+ secrets_mapping_file : " /home/{{ ansible_user }}/iac/docker/ secret-mappings.yml"
6
6
tasks :
7
+ - name : Ensure the repository is up-to-date
8
+ ansible.builtin.shell : git pull
9
+ args :
10
+ chdir : " {{ repo_path }}"
11
+ register : git_pull_output
12
+
13
+ - name : Display git pull output
14
+ ansible.builtin.debug :
15
+ var : git_pull_output.stdout_lines
16
+
7
17
- name : Read secret mapping
8
18
ansible.builtin.slurp :
9
19
src : " {{ secrets_mapping_file }}"
25
35
{{ key }}={{ lookup('bitwarden.secrets.lookup', secret_id, access_token=bw_access_token) }}
26
36
{% endfor %}
27
37
28
- - name : Ensure the repository is up-to-date
29
- ansible.builtin.shell : git pull
30
- args :
31
- chdir : " {{ repo_path }}"
32
- register : git_pull_output
33
-
34
- - name : Display git pull output
35
- ansible.builtin.debug :
36
- var : git_pull_output.stdout_lines
37
-
38
38
- name : Restart services using Docker Compose
39
39
community.docker.docker_compose_v2 :
40
40
project_src : " {{ repo_path }}"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments