From 8dd65d65ebe259f2301a171428e6b76dc5f2c2aa Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 May 2024 12:02:05 +0200 Subject: [PATCH] =?UTF-8?q?role=20awx=20actualis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/awx-user-cli/tasks/main.yml | 6 +++++- roles/awx-user/tasks/main.yml | 6 ++++++ s-awx.yml | 2 +- s-infra.yml | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/roles/awx-user-cli/tasks/main.yml b/roles/awx-user-cli/tasks/main.yml index c84110b..43da733 100644 --- a/roles/awx-user-cli/tasks/main.yml +++ b/roles/awx-user-cli/tasks/main.yml @@ -5,7 +5,11 @@ name: awx groups: sudo append: yes - shell: /bin/bash + +- name: Cration d'un mdp pour user awx + user: + name: awx + password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70' - name: Get awx key_pub get_url: diff --git a/roles/awx-user/tasks/main.yml b/roles/awx-user/tasks/main.yml index 7d8b900..89d1876 100644 --- a/roles/awx-user/tasks/main.yml +++ b/roles/awx-user/tasks/main.yml @@ -7,6 +7,12 @@ shell: /bin/bash generate_ssh_key: yes +- name: Creation mdp user awx + ansible.builtin.user: + name: + user: awx + password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70' + - name: Copie cle publique dans gsbstore copy: src: /home/awx/.ssh/id_rsa.pub diff --git a/s-awx.yml b/s-awx.yml index f91aac4..73da01e 100644 --- a/s-awx.yml +++ b/s-awx.yml @@ -6,7 +6,7 @@ - base - goss - ssh-cli - - awx-user + - awx-user-cli #- awx # - zabbix-cli - journald-snd diff --git a/s-infra.yml b/s-infra.yml index 29ef666..4fdc61e 100644 --- a/s-infra.yml +++ b/s-infra.yml @@ -11,7 +11,8 @@ - dns-master - webautoconf # - elk-filebeat-cli - # - journald-snd + - journald-snd - ssh-cli + - awx-user-cli - post