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
|
@ -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
Add a link
Reference in a new issue