8025-awxRefactor-debianBootStrap-FinishWorks #32

Merged
juan merged 6 commits from 8025-awxRefactor-debianBootStrap-FinishWorks into main 2024-10-18 07:17:30 +00:00
4 changed files with 5 additions and 5 deletions
Showing only changes of commit 513d7d4378 - Show all commits

View File

@ -1,4 +1,4 @@
vn_witness: false vn_no_witness: false
default_user: user default_user: user
fail2ban: fail2ban:
email: "{{ sysadmin_mail }}" email: "{{ sysadmin_mail }}"

View File

@ -1,5 +1,5 @@
- name: Generate root password - name: Generate root password
when: vn_witness when: vn_no_witness
block: block:
- name: Search root password into Passbolt - name: Search root password into Passbolt
set_fact: set_fact:

View File

@ -3,7 +3,7 @@
path: "/etc/ssh/ssh_host_{{ item.type }}_key" path: "/etc/ssh/ssh_host_{{ item.type }}_key"
type: "{{ item.type }}" type: "{{ item.type }}"
force: yes force: yes
when: vn_witness when: vn_no_witness
loop: loop:
- { type: 'rsa' } - { type: 'rsa' }
- { type: 'ecdsa' } - { type: 'ecdsa' }

View File

@ -4,9 +4,9 @@
register: keys_generated_marker register: keys_generated_marker
- name: Generate variable if not exists - name: Generate variable if not exists
set_fact: set_fact:
vn_witness: "{{ not keys_generated_marker.stat.exists }}" vn_no_witness: "{{ not keys_generated_marker.stat.exists }}"
- name: Create marker file to indicate vn happends - name: Create marker file to indicate vn happends
file: file:
path: /etc/vn.witness path: /etc/vn.witness
state: touch state: touch
when: vn_witness when: vn_no_witness