Remove network tasks from common role
This commit is contained in:
parent
1fa09665ff
commit
278503d2d3
@ -1,10 +1,6 @@
|
|||||||
---
|
---
|
||||||
cron_service_name: cron
|
cron_service_name: cron
|
||||||
|
|
||||||
resolv_nameserver: []
|
|
||||||
resolv_options:
|
|
||||||
- edns0
|
|
||||||
|
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
|
|
||||||
# vim:ft=yaml.ansible:
|
# vim:ft=yaml.ansible:
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: "restart resolv"
|
|
||||||
service:
|
|
||||||
name: "{{ resolv_service_name }}"
|
|
||||||
state: restarted
|
|
||||||
when: resolv_service_name is defined
|
|
||||||
|
|
||||||
- name: restart cron
|
- name: restart cron
|
||||||
service:
|
service:
|
||||||
name: "{{ cron_service_name }}"
|
name: "{{ cron_service_name }}"
|
||||||
|
@ -12,12 +12,6 @@
|
|||||||
state: present
|
state: present
|
||||||
with_items: "{{ sys_utils }}"
|
with_items: "{{ sys_utils }}"
|
||||||
|
|
||||||
- name: configure resolv.conf
|
|
||||||
template:
|
|
||||||
src: resolv.conf.j2
|
|
||||||
dest: /etc/resolv.conf
|
|
||||||
notify: "restart resolv"
|
|
||||||
|
|
||||||
- name: configure system timezone
|
- name: configure system timezone
|
||||||
timezone:
|
timezone:
|
||||||
name: "{{ timezone }}"
|
name: "{{ timezone }}"
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
# {{ ansible_managed }}
|
|
||||||
|
|
||||||
{% for ns in resolv_nameserver %}
|
|
||||||
nameserver {{ ns }}
|
|
||||||
{% endfor %}
|
|
||||||
{% if resolv_options is defined %}
|
|
||||||
options {{ resolv_options | join(' ') }}
|
|
||||||
{% endif %}
|
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
resolv_service_name: systemd-resolved.service
|
|
||||||
|
|
||||||
# vim:ft=yaml.ansible:
|
# vim:ft=yaml.ansible:
|
||||||
|
Loading…
Reference in New Issue
Block a user