1
0
Fork 0
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:
L3D 2021-03-04 16:07:53 +01:00
parent 7b662dbd39
commit bf8471febc
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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'