test Vault with semaphore

This commit is contained in:
2023-10-07 10:19:47 +02:00
parent ef5ff0c29b
commit 595e3a1feb
2 changed files with 28 additions and 13 deletions

31
all.yml
View File

@@ -9,20 +9,20 @@
pre_tasks: pre_tasks:
- name: >- - name: >-
Show target servers -> Hostname : OS - IP Show target servers -> Hostname : OS - IP
debug: debug:
msg: "{{ ansible_hostname }} : {{ ansible_distribution }} {{ ansible_distribution_version }} - {{ ansible_default_ipv4.address }}" msg: "{{ ansible_hostname }} : {{ ansible_distribution }} {{ ansible_distribution_version }} - {{ ansible_default_ipv4.address }}"
tags: tags:
- always - always
- name: Ensure specified repository packages are into sources list - name: Ensure specified repository packages are into sources list
ansible.builtin.apt_repository: ansible.builtin.apt_repository:
repo: "{{ item }}" repo: "{{ item }}"
state: present state: present
loop: "{{ apt_repositories_sources }}" loop: "{{ apt_repositories_sources }}"
tags: tags:
- repo - repo
roles: roles:
- { role: grog.management-user, tags: user } - { role: grog.management-user, tags: user }
@@ -68,3 +68,8 @@
tags: tags:
- alerts - alerts
- name: Test semaphore vault pass
debug:
msg: "{{ test_vault }}"
tags:
- always

View File

@@ -128,3 +128,13 @@ chisel_remove_all:
- "{{ chisel_download_destination }}" - "{{ chisel_download_destination }}"
- "{{ chisel_install_destination }}" - "{{ chisel_install_destination }}"
- /var/log/chisel - /var/log/chisel
test_vault: !vault |
$ANSIBLE_VAULT;1.2;AES256;prod
36663965646236326237623936646161653232306263353564666238626564633530363761633164
6166363235383964626463353061343635626431396664660a333231303661343362353162353938
32373332373362656635393365363635313137306532366536323765346464336634653366383961
3965626433316138320a366336393034383065363134623239646230396432356431383935346463
6330