Inital release 0.1.0
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
group: root
|
||||
with_items: "{{ networkd.link | default([]) }}"
|
||||
register: networkd_deployed_link
|
||||
notify: networkd | Reload configuration
|
||||
notify: networkd | Do {{ networkd_apply_action }}
|
||||
|
||||
- name: networkd | Deploy .netdev configs
|
||||
template:
|
||||
@@ -20,7 +20,7 @@
|
||||
group: root
|
||||
with_items: "{{ networkd.netdev | default([]) }}"
|
||||
register: networkd_deployed_netdev
|
||||
notify: networkd | Reload configuration
|
||||
notify: networkd | Do {{ networkd_apply_action }}
|
||||
|
||||
- name: networkd | Deploy .network configs
|
||||
template:
|
||||
@@ -31,4 +31,4 @@
|
||||
group: root
|
||||
with_items: "{{ networkd.network | default([]) }}"
|
||||
register: networkd_deployed_network
|
||||
notify: networkd | Reload configuration
|
||||
notify: networkd | Do {{ networkd_apply_action }}
|
||||
|
@@ -1,5 +1,12 @@
|
||||
---
|
||||
|
||||
- name: Check role vars
|
||||
assert:
|
||||
that:
|
||||
- networkd_apply_action == "restart" or networkd_apply_action == "reload" or networkd_apply_action == "nothing"
|
||||
fail_msg: 'networkd_apply_action shoud be "restart", "reload" or "nothing"'
|
||||
quiet: yes
|
||||
|
||||
- import_tasks: deploy_configs.yml
|
||||
|
||||
- import_tasks: remove_unmanaged.yml
|
||||
@@ -11,6 +18,7 @@
|
||||
mode: 644
|
||||
owner: root
|
||||
group: root
|
||||
when: networkd_resolv_conf_content is defined
|
||||
|
||||
- name: networkd | Enable and start service
|
||||
systemd:
|
||||
|
@@ -17,4 +17,4 @@
|
||||
- (item.path) not in ( networkd_deployed_link | json_query('results[].invocation.module_args.dest') | default([]) )
|
||||
- (item.path) not in ( networkd_deployed_netdev | json_query('results[].invocation.module_args.dest') | default([]) )
|
||||
- (item.path) not in ( networkd_deployed_network | json_query('results[].invocation.module_args.dest') | default([]) )
|
||||
notify: networkd | Reload configuration
|
||||
notify: networkd | Do {{ networkd_apply_action }}
|
||||
|
Reference in New Issue
Block a user