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:
Andreas B. Mundt 2024-01-17 13:05:22 +01:00
parent 2a79f3c304
commit 57e090034d
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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'