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:
|
||||
- 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
|
||||
|
||||
## Temporary fixes and quirks:
|
||||
|
|
|
@ -11,11 +11,11 @@ n=0
|
|||
|
||||
cmds=(
|
||||
'uname -a'
|
||||
'tail -1 /home/ansible/.ansible/stamps'
|
||||
'tail -1 /root/.ansible/stamps'
|
||||
'ip route list default'
|
||||
'ip link show | \
|
||||
sed -nE -e "s/^[2-9]: (\S+): .+/\1/p" -e "s/.+ether ([0-9a-f:]+) .+/\1/p" | \
|
||||
paste -d " " - -'
|
||||
paste - -'
|
||||
)
|
||||
# 'w'
|
||||
# 'uptime'
|
||||
|
|
Loading…
Add table
Reference in a new issue