Use separate bootstrap files for base and pvc roles
This commit is contained in:
parent
6dc57f374b
commit
9b457890d5
|
@ -3,10 +3,10 @@
|
||||||
# First run check
|
# First run check
|
||||||
#
|
#
|
||||||
- name: first run check
|
- name: first run check
|
||||||
shell: "echo 'bootstrapped' > /etc/pvc-install"
|
shell: "echo 'bootstrapped' > /etc/pvc-base-install"
|
||||||
register: newhost
|
register: newhost
|
||||||
args:
|
args:
|
||||||
creates: "/etc/pvc-install"
|
creates: "/etc/pvc-base-install"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install custom fact scripts
|
# Install custom fact scripts
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
- host_group
|
- host_group
|
||||||
- dhcp_status
|
- dhcp_status
|
||||||
|
|
||||||
- name: regather local facts
|
- name: regather facts
|
||||||
setup:
|
setup:
|
||||||
when: installed_facts.changed
|
when: installed_facts.changed
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
when:
|
when:
|
||||||
- ansible_distribution_major_version == "buster/sid"
|
- ansible_distribution_major_version == "buster/sid"
|
||||||
|
|
||||||
- name: regather distribution facts
|
- name: regather facts
|
||||||
setup:
|
setup:
|
||||||
when:
|
when:
|
||||||
- installed_facts.changed
|
- installed_facts.changed
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
# First-run check
|
# First-run check
|
||||||
- name: check if this is a new instance
|
- name: check if this is a new instance
|
||||||
shell: "echo 'bootstrapped' > /etc/pvc-install"
|
shell: "echo 'bootstrapped' > /etc/pvc-pvc-install"
|
||||||
args:
|
args:
|
||||||
creates: /etc/pvc-install
|
creates: /etc/pvc-pvc-install
|
||||||
register: newhost_check
|
register: newhost_check
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue