From 595e3a1feb6c831b9f45829bc8d33fcbbb489636 Mon Sep 17 00:00:00 2001 From: staffadmin Date: Sat, 7 Oct 2023 10:19:47 +0200 Subject: [PATCH] test Vault with semaphore --- all.yml | 31 ++++++++++++++++++------------- group_vars/perso.yml | 10 ++++++++++ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/all.yml b/all.yml index 1ddb001..1143ca3 100644 --- a/all.yml +++ b/all.yml @@ -9,20 +9,20 @@ pre_tasks: - - name: >- - Show target servers -> Hostname : OS - IP - debug: - msg: "{{ ansible_hostname }} : {{ ansible_distribution }} {{ ansible_distribution_version }} - {{ ansible_default_ipv4.address }}" - tags: - - always + - name: >- + Show target servers -> Hostname : OS - IP + debug: + msg: "{{ ansible_hostname }} : {{ ansible_distribution }} {{ ansible_distribution_version }} - {{ ansible_default_ipv4.address }}" + tags: + - always - - name: Ensure specified repository packages are into sources list - ansible.builtin.apt_repository: - repo: "{{ item }}" - state: present - loop: "{{ apt_repositories_sources }}" - tags: - - repo + - name: Ensure specified repository packages are into sources list + ansible.builtin.apt_repository: + repo: "{{ item }}" + state: present + loop: "{{ apt_repositories_sources }}" + tags: + - repo roles: - { role: grog.management-user, tags: user } @@ -68,3 +68,8 @@ tags: - alerts + - name: Test semaphore vault pass + debug: + msg: "{{ test_vault }}" + tags: + - always \ No newline at end of file diff --git a/group_vars/perso.yml b/group_vars/perso.yml index 03932b8..dc22cd6 100644 --- a/group_vars/perso.yml +++ b/group_vars/perso.yml @@ -128,3 +128,13 @@ chisel_remove_all: - "{{ chisel_download_destination }}" - "{{ chisel_install_destination }}" - /var/log/chisel + + + +test_vault: !vault | + $ANSIBLE_VAULT;1.2;AES256;prod + 36663965646236326237623936646161653232306263353564666238626564633530363761633164 + 6166363235383964626463353061343635626431396664660a333231303661343362353162353938 + 32373332373362656635393365363635313137306532366536323765346464336634653366383961 + 3965626433316138320a366336393034383065363134623239646230396432356431383935346463 + 6330 \ No newline at end of file