Commit 0b3a7b48 authored by julian.gethmann's avatar julian.gethmann Committed by yuancun.nie

Delete legacy network from nfs and fix syntax error in sshd

parent 407206e2
......@@ -58,11 +58,11 @@
backup: yes
notify: restart sshd
- name: Delete rootlogin-conf by anaconda
become: yes
file:
name: /etc/sysconfig/sshd-permitrootlogin
state: absent
- name: Delete rootlogin-conf by anaconda
become: yes
file:
name: /etc/sysconfig/sshd-permitrootlogin
state: absent
- name: Add root key
become: yes
......
......@@ -28,7 +28,7 @@
opts: "soft,timeo=14,intr,nosuid"
state: "{{ item }}"
become: yes
when: (ansible_default_ipv4.address | ipaddr('129.13.108.64/26')) or (ansible_default_ipv4.address | ipaddr('129.13.238.64/26'))
when: (ansible_default_ipv4.address | ipv4('129.13.238.64/26')) or (ansible_default_ipv6.address | ipv6('2a00:1398:4:8200::/64'))
with_items:
- mounted
- present
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment