1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

indentation/syntax per new Ansible docs

This commit is contained in:
A Holt 2018-02-12 21:42:21 -05:00 committed by GitHub
parent 9fd4c2a5e5
commit 2a8dd40067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,55 +1,64 @@
- name: Disable firewalld service - name: Disable firewalld service (OS's other than debuntu)
service: name=firewalld service:
enabled=no name: firewalld
enabled: no
when: not is_debuntu when: not is_debuntu
- name: Use larger hammer to disable firewalld (2 symbolic links involved) - name: Use larger hammer to disable firewalld: 2 symbolic links involved (OS's other than debuntu)
shell: "systemctl disable firewalld.service" shell: "systemctl disable firewalld.service"
when: not is_debuntu when: not is_debuntu
- name: Mask firewalld service - name: Mask firewalld service (OS's other than debuntu)
shell: 'systemctl mask firewalld' shell: 'systemctl mask firewalld'
ignore_errors: yes ignore_errors: yes
when: not installing and not is_debuntu when: not installing and not is_debuntu
- name: Stop firewalld service - name: Stop firewalld service (OS's other than debuntu)
service: name=firewalld service:
state=stopped name: firewalld
state: stopped
ignore_errors: yes ignore_errors: yes
when: not installing and not is_debuntu when: not installing and not is_debuntu
- name: Remove iptables.service file from /etc - name: Remove iptables.service file from /etc
file: path=/etc/systemd/system/iptables.service file:
state=absent path: /etc/systemd/system/iptables.service
state: absent
- name: Remove iptables-xs.service file from /etc - name: Remove iptables-xs.service file from /etc
file: path=/etc/systemd/system/iptables-xs.service file:
state=absent path: /etc/systemd/system/iptables-xs.service
state: absent
- name: Install iptables service package - name: Install iptables service package (debuntu)
package: name=iptables-persistent package:
state=present name: iptables-persistent
state: present
when: is_debuntu when: is_debuntu
tags: tags:
- download - download
- name: Install iptables service package - name: Install iptables service package (OS's other than debuntu)
package: name=iptables-services package:
state=present name: iptables-services
state: present
when: not is_debuntu when: not is_debuntu
tags: tags:
- download - download
- name: Install iptables services - name: Install iptables services
template: src={{ item.0 }} template:
dest={{ item.1 }} src: "{{ item.0 }}"
owner='root' dest: "{{ item.1 }}"
group='root' owner: root
mode={{ item.2 }} group: root
mode: "{{ item.2 }}"
with_items: with_items:
- { 0: 'iptables-config', 1: '/etc/sysconfig/iptables-config', 2: '0644' } - { 0: 'iptables-config', 1: '/etc/sysconfig/iptables-config', 2: '0644' }
- name: Install Debian config - name: Install Debian config (debuntu)
template: src=iptables dest=/etc/network/if-pre-up.d/iptables template:
mode=0755 src: iptables
dest: /etc/network/if-pre-up.d/iptables
mode: 0755
when: is_debuntu when: is_debuntu