Use true instead of yes.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
name:
|
||||
- doas
|
||||
register: doas_install
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | DoAs | Configure [Linux]
|
||||
blockinfile:
|
||||
@@ -24,8 +24,8 @@
|
||||
{{ doas_config }}
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | doas Linux'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
when: not doas_install.failed and ansible_system in ("Linux")
|
||||
|
||||
- name: General | Software | DoAs | Configure [BSD]
|
||||
@@ -35,8 +35,8 @@
|
||||
{{ doas_config }}
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | doas BSD'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
when: not doas_install.failed and ansible_system in ("FreeBSD")
|
||||
|
||||
- name: General | Software | DoAs | Configure [Other]
|
||||
@@ -46,9 +46,9 @@
|
||||
{{ doas_config }}
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | doas Other'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
loop:
|
||||
- "{{ doas_conf_file_linux }}"
|
||||
- "{{ doas_conf_file_bsd }}"
|
||||
when: not doas_install.failed and ansible_system not in ("Linux", "FreeBSD")
|
||||
when: not doas_install.failed and ansible_system not in ("Linux", "FreeBSD")
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
# Groups that do not come to all distros by default.
|
||||
|
||||
- name: General | Account Management | System Groups
|
||||
- name: General | Account Management | System Groups
|
||||
group:
|
||||
name: "{{ item }}"
|
||||
system: yes
|
||||
system: true
|
||||
state: present
|
||||
loop:
|
||||
- sudo
|
||||
|
||||
@@ -146,8 +146,8 @@
|
||||
[global]
|
||||
marker: '; {mark} MANAGED BY ANSIBLE | Generic Config'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | General | Load
|
||||
set_fact:
|
||||
@@ -246,8 +246,8 @@
|
||||
[global]
|
||||
marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Workstation | Load
|
||||
set_fact:
|
||||
@@ -327,8 +327,8 @@
|
||||
# [global]
|
||||
# marker: '; {mark} MANAGED BY ANSIBLE | Miner Config'
|
||||
# state: present
|
||||
# create: yes
|
||||
# backup: yes
|
||||
# create: true
|
||||
# backup: true
|
||||
#
|
||||
#- name: General | Account Management | Provisioning Configuration | Miner | Load
|
||||
# set_fact:
|
||||
@@ -396,8 +396,8 @@
|
||||
[global]
|
||||
marker: '; {mark} MANAGED BY ANSIBLE | Server Config'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Server | Load
|
||||
set_fact:
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
regexp: '{{ item.key }}'
|
||||
line: '{{ item.value }} # MANAGED BY ANSIBLE'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
create: true
|
||||
backup: true
|
||||
loop:
|
||||
- { "key": '^[\#]?Defaults targetpw', "value": '#Defaults targetpw'}
|
||||
- { "key": '^[\#]?ALL ALL\=\(ALL\) ALL', "value": '#ALL ALL=(ALL) ALL'}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
regexp: "{{ bash_exec.stdout }}"
|
||||
line: "{{ bash_exec.stdout }}"
|
||||
insertbefore: "# End of file"
|
||||
backup: yes
|
||||
backup: true
|
||||
create: no
|
||||
state: present
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
@@ -29,7 +29,7 @@
|
||||
# regexp: "{{ zsh_exec.stdout }}"
|
||||
# line: "{{ zsh_exec.stdout }}"
|
||||
# insertbefore: "# End of file"
|
||||
# backup: yes
|
||||
# backup: true
|
||||
# create: no
|
||||
# state: present
|
||||
# when: ansible_pkg_mgr == "pacman"
|
||||
@@ -41,8 +41,8 @@
|
||||
user:
|
||||
name: root
|
||||
shell: "{{ bash_exec.stdout }}"
|
||||
create_home: yes
|
||||
generate_ssh_key: yes
|
||||
create_home: true
|
||||
generate_ssh_key: true
|
||||
register: user_root
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
user:
|
||||
name: ansible
|
||||
comment: Ansible
|
||||
system: yes
|
||||
system: true
|
||||
register: user_ansible
|
||||
|
||||
|
||||
@@ -67,10 +67,10 @@
|
||||
- video
|
||||
- render
|
||||
- wheel
|
||||
append: yes
|
||||
append: true
|
||||
shell: "{{ user_shell }}"
|
||||
create_home: yes
|
||||
generate_ssh_key: yes
|
||||
create_home: true
|
||||
generate_ssh_key: true
|
||||
register: user_user
|
||||
|
||||
- name: General | Account Management | Users | User | Test Logging In
|
||||
@@ -1324,7 +1324,7 @@
|
||||
echo "`date` - Ansible .profile loaded successfully!"
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||
state: present
|
||||
create: yes
|
||||
create: true
|
||||
backup: no
|
||||
loop:
|
||||
- ".profile"
|
||||
@@ -1345,7 +1345,7 @@
|
||||
echo "`date` - Ansible .bashrc loaded successfully!"
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||
state: present
|
||||
create: yes
|
||||
create: true
|
||||
backup: no
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
@@ -1361,7 +1361,7 @@
|
||||
echo "`date` - Ansible .zshrc loaded successfully!"
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||
state: present
|
||||
create: yes
|
||||
create: true
|
||||
backup: no
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
@@ -1383,7 +1383,7 @@
|
||||
|
||||
- name: General | Account Management | Users | Files | Helper Functions (Reset)
|
||||
shell: "rm -v {{ global_bin }}/*.function"
|
||||
ignore_errors: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Account Management | Users | Files | Helper Functions
|
||||
copy:
|
||||
@@ -1406,7 +1406,7 @@
|
||||
clone: true
|
||||
force: true
|
||||
update: true
|
||||
#ignore_errors: yes
|
||||
#ignore_errors: true
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Install | .rc_shared
|
||||
copy:
|
||||
@@ -1418,7 +1418,7 @@
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
- "{{ user_user.home }}"
|
||||
#ignore_errors: yes
|
||||
#ignore_errors: true
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Install | .vimrc
|
||||
@@ -1431,7 +1431,7 @@
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
- "{{ user_user.home }}"
|
||||
#ignore_errors: yes
|
||||
#ignore_errors: true
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Permissions
|
||||
@@ -1443,4 +1443,4 @@
|
||||
loop:
|
||||
- .rc_shared
|
||||
- .vimrc
|
||||
#ignore_errors: yes
|
||||
#ignore_errors: true
|
||||
|
||||
Reference in New Issue
Block a user