copr-base: don't reconfigure ipv6 over again
This commit is contained in:
parent
a1b7c1102a
commit
96b00cbd33
1 changed files with 11 additions and 1 deletions
|
@ -90,9 +90,19 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: check we have the needed ipv6
|
||||||
|
shell: "nmcli -f IP6.ADDRESS device show eth0 | grep {{ aws_ipv6_addr }}"
|
||||||
|
register: ipv6_config_check
|
||||||
|
failed_when: false
|
||||||
|
changed_when: ipv6_config_check.rc == 1
|
||||||
|
when: aws_ipv6_addr is defined
|
||||||
|
tags: ipv6_config
|
||||||
|
|
||||||
- name: setup ipv6 networking
|
- name: setup ipv6 networking
|
||||||
shell: "nmcli con modify 'cloud-init eth0' ipv6.method manual ipv6.never-default no ipv6.addresses '{{ aws_ipv6_addr }}'"
|
shell: "nmcli con modify 'cloud-init eth0' ipv6.method manual ipv6.never-default no ipv6.addresses '{{ aws_ipv6_addr }}'"
|
||||||
when: aws_ipv6_addr is defined
|
when:
|
||||||
|
- aws_ipv6_addr is defined
|
||||||
|
- ipv6_config_check.changed
|
||||||
tags: ipv6_config
|
tags: ipv6_config
|
||||||
|
|
||||||
- name: install nrpe checks
|
- name: install nrpe checks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue