|
@@ -102,7 +102,7 @@
|
|
path: "{{ ansible_conf_file_path }}"
|
|
path: "{{ ansible_conf_file_path }}"
|
|
state: directory
|
|
state: directory
|
|
mode: "{{ file_perm }}"
|
|
mode: "{{ file_perm }}"
|
|
- when: ansible_conf_exists.stat.exists == false
|
|
|
|
|
|
+ when: not ansible_conf_exists.stat.exists
|
|
|
|
|
|
- name: Create ansible config file if it does not exist
|
|
- name: Create ansible config file if it does not exist
|
|
copy:
|
|
copy:
|
|
@@ -111,14 +111,14 @@
|
|
content: |
|
|
content: |
|
|
[defaults]
|
|
[defaults]
|
|
log_path = /var/log/omnia.log
|
|
log_path = /var/log/omnia.log
|
|
- when: ansible_conf_exists.stat.exists == false
|
|
|
|
|
|
+ when: not ansible_conf_exists.stat.exists
|
|
|
|
|
|
- name: Set omnia.log file
|
|
- name: Set omnia.log file
|
|
replace:
|
|
replace:
|
|
path: "{{ ansible_conf_file_path }}/ansible.cfg"
|
|
path: "{{ ansible_conf_file_path }}/ansible.cfg"
|
|
regexp: '#log_path = /var/log/ansible.log'
|
|
regexp: '#log_path = /var/log/ansible.log'
|
|
replace: 'log_path = /var/log/omnia.log'
|
|
replace: 'log_path = /var/log/omnia.log'
|
|
- when: ansible_conf_exists.stat.exists == true
|
|
|
|
|
|
+ when: ansible_conf_exists.stat.exists
|
|
|
|
|
|
- name: Encrypt input config file
|
|
- name: Encrypt input config file
|
|
command: >-
|
|
command: >-
|