Adds network device to ansible_local.zerotier
Also removes the conditional for skipping installation based on ansible_local.zerotier value. Skipping tasks like that should be up to the user, not the role.develop
parent
b86bc4c73d
commit
95d9213746
|
|
@ -16,6 +16,7 @@ function file_content {
|
||||||
network=($REPLY)
|
network=($REPLY)
|
||||||
echo " \"${network[2]}\": {"
|
echo " \"${network[2]}\": {"
|
||||||
echo " \"status\":\"${network[5]}\""
|
echo " \"status\":\"${network[5]}\""
|
||||||
|
echo " \"device\":\"${network[7]}\""
|
||||||
|
|
||||||
if [ "$counter" -eq "$network_count" ]; then
|
if [ "$counter" -eq "$network_count" ]; then
|
||||||
echo " }"
|
echo " }"
|
||||||
|
|
@ -39,4 +40,4 @@ file_content > $FACT_FILE
|
||||||
|
|
||||||
|
|
||||||
# TO-DO
|
# TO-DO
|
||||||
# Consider something that hadles JSON better than Bash does
|
# Handle different states than "OK". Other statuses can mess up positions.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
- import_tasks: install.yml
|
- import_tasks: install.yml
|
||||||
when:
|
when:
|
||||||
- not skip_install|default(false)|bool
|
- not skip_install|default(false)|bool
|
||||||
- ansible_local.zerotier is not defined
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Update ansible_local facts
|
- name: Update ansible_local facts
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue