Move ansible stamps to root directory to fix installation.
During installation, ansible-pull is run as root, '/home/ansible/.ansible/' does not exist.
This commit is contained in:
parent
2a79f3c304
commit
57e090034d
2 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Timestamp successfull ansible run
|
- name: Timestamp successfull ansible run
|
||||||
ansible.builtin.shell: date --iso-8601=seconds >> /home/ansible/.ansible/stamps
|
ansible.builtin.shell: date --iso-8601=seconds >> /root/.ansible/stamps
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
## Temporary fixes and quirks:
|
## Temporary fixes and quirks:
|
||||||
|
|
|
@ -11,11 +11,11 @@ n=0
|
||||||
|
|
||||||
cmds=(
|
cmds=(
|
||||||
'uname -a'
|
'uname -a'
|
||||||
'tail -1 /home/ansible/.ansible/stamps'
|
'tail -1 /root/.ansible/stamps'
|
||||||
'ip route list default'
|
'ip route list default'
|
||||||
'ip link show | \
|
'ip link show | \
|
||||||
sed -nE -e "s/^[2-9]: (\S+): .+/\1/p" -e "s/.+ether ([0-9a-f:]+) .+/\1/p" | \
|
sed -nE -e "s/^[2-9]: (\S+): .+/\1/p" -e "s/.+ether ([0-9a-f:]+) .+/\1/p" | \
|
||||||
paste -d " " - -'
|
paste - -'
|
||||||
)
|
)
|
||||||
# 'w'
|
# 'w'
|
||||||
# 'uptime'
|
# 'uptime'
|
||||||
|
|
Loading…
Add table
Reference in a new issue