You've already forked ansible-role-common
Lint improvements
This commit is contained in:
@@ -9,7 +9,7 @@ dns_servers:
|
|||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
|
|
||||||
ADMIN_GROUP: admins
|
admin_group: admins
|
||||||
|
|
||||||
|
|
||||||
common_grub_timeout: 5
|
common_grub_timeout: 5
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
name: ntpd
|
name: ntpd
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: reboot windows
|
- name: Reboot Windows
|
||||||
win_reboot:
|
win_reboot:
|
||||||
|
|
||||||
- name: restart NetworkManager
|
- name: Restart NetworkManager
|
||||||
service:
|
service:
|
||||||
name: NetworkManager
|
name: NetworkManager
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|||||||
@@ -38,7 +38,9 @@
|
|||||||
# tags: security
|
# tags: security
|
||||||
|
|
||||||
- name: Create admin group
|
- name: Create admin group
|
||||||
group: name={{ ADMIN_GROUP }} state=present
|
group:
|
||||||
|
name: "{{ admin_group }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Configure yum limit
|
- name: Configure yum limit
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
admin_password: "{{ vault_ad_password }}"
|
admin_password: "{{ vault_ad_password }}"
|
||||||
domain_name: "{{ authconfig_domain }}"
|
domain_name: "{{ authconfig_domain }}"
|
||||||
when: ad_domain_joined
|
when: ad_domain_joined
|
||||||
notify: reboot windows
|
notify: Reboot Windows
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: Ensure Important dirs exist
|
- name: Ensure Important dirs exist
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
- name: Apply Windows Updates
|
- name: Apply Windows Updates
|
||||||
win_updates:
|
win_updates:
|
||||||
when: apply_windows_updates
|
when: apply_windows_updates
|
||||||
notify: reboot windows
|
notify: Reboot Windows
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: Ensure default applications installed
|
- name: Ensure default applications installed
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
- name: Postfix Configuration
|
- name: Postfix Configuration
|
||||||
when: postfix_configure
|
when: postfix_configure
|
||||||
block:
|
block:
|
||||||
- name: postfix | Apply postfix configuration
|
- name: Postfix | Apply postfix configuration
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ configurations.dest }}"
|
dest: "{{ configurations.dest }}"
|
||||||
regexp: "{{ configurations.regexp }}"
|
regexp: "{{ configurations.regexp }}"
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: configurations
|
loop_var: configurations
|
||||||
|
|
||||||
- name: postfix | Ensure Postfix is Started/Enabled
|
- name: Postfix | Ensure Postfix is Started/Enabled
|
||||||
service:
|
service:
|
||||||
name: postfix
|
name: postfix
|
||||||
state: started
|
state: started
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
backup: yes
|
backup: yes
|
||||||
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version == "7")
|
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version == "7")
|
||||||
notify:
|
notify:
|
||||||
- restart NetworkManager
|
- Restart NetworkManager
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Ensure correct permissions (hosts/resolv.conf)
|
- name: Ensure correct permissions (hosts/resolv.conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user