mirror of
https://github.com/roles-ansible/ansible_role_resolvconf.git
synced 2024-08-16 10:09:52 +02:00
improve variables and path
This commit is contained in:
parent
7b662dbd39
commit
bf8471febc
3 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,8 @@
|
||||||
path: '/etc/resolv.conf'
|
path: '/etc/resolv.conf'
|
||||||
attr: '-i'
|
attr: '-i'
|
||||||
register: resolv_file
|
register: resolv_file
|
||||||
changed_when: "'i' in resolv_file.diff.before.attributes and not resolveconf__immutable"
|
changed_when: "resolv_file.changed and not resolveconf__immutable"
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "Configure resolv.conf"
|
- name: "Configure resolv.conf"
|
||||||
become: true
|
become: true
|
||||||
|
@ -25,5 +26,5 @@
|
||||||
path: '/etc/resolv.conf'
|
path: '/etc/resolv.conf'
|
||||||
attr: '+i'
|
attr: '+i'
|
||||||
register: resolv_file
|
register: resolv_file
|
||||||
changed_when: "'i' not in resolv_file.diff.before.attributes"
|
changed_when: "not resolv_file.changed"
|
||||||
when: resolveconf__immutable | bool
|
when: resolveconf__immutable | bool
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 3 # should be a integer
|
playbook_version_number: 4 # should be a integer
|
||||||
playbook_version_path: 'do1jlr.resolvconf.version'
|
playbook_version_path: 'do1jlr.resolvconf.version'
|
||||||
|
|
Loading…
Reference in a new issue