Details

Result

Field Value
changed
False
cmd
[
    "/usr/local/bin/openstack-host-hostfile-setup.sh"
]
delta
0:00:00.013593
end
2020-01-31 15:50:16.975883
rc
0
start
2020-01-31 15:50:16.962290
stderr
+ host_update aio1 aio1 aio1 172.29.236.100 openstack.local
+ ANSHOSTNAME=aio1
+ RFCHOSTNAME=aio1
+ INVHOSTNAME=aio1
+ IPADDR=172.29.236.100
+ DOMAINNAME=openstack.local
+ [[ aio1 != \a\i\o\1 ]]
+ [[ aio1 != \a\i\o\1 ]]
+ [[ aio1 == \a\i\o\1 ]]
+ [[ aio1 == \a\i\o\1 ]]
+ insert_host_entry '172.29.236.100 aio1.openstack.local aio1' 172.29.236.100
+ ENTRY='172.29.236.100 aio1.openstack.local aio1'
+ ADDR=172.29.236.100
++ grep '^172.29.236.100\b' /etc/hosts
++ wc -l
+ [[ 1 -ge 2 ]]
+ grep -q '^172.29.236.100\b' /etc/hosts
+ sed -i 's|^172.29.236.100\b.*|172.29.236.100 aio1.openstack.local aio1|' /etc/hosts
+ sha1sum /etc/hosts
+ awk '{print $1}'
stderr_lines
[
    "+ host_update aio1 aio1 aio1 172.29.236.100 openstack.local",
    "+ ANSHOSTNAME=aio1",
    "+ RFCHOSTNAME=aio1",
    "+ INVHOSTNAME=aio1",
    "+ IPADDR=172.29.236.100",
    "+ DOMAINNAME=openstack.local",
    "+ [[ aio1 != \\a\\i\\o\\1 ]]",
    "+ [[ aio1 != \\a\\i\\o\\1 ]]",
    "+ [[ aio1 == \\a\\i\\o\\1 ]]",
    "+ [[ aio1 == \\a\\i\\o\\1 ]]",
    "+ insert_host_entry '172.29.236.100 aio1.openstack.local aio1' 172.29.236.100",
    "+ ENTRY='172.29.236.100 aio1.openstack.local aio1'",
    "+ ADDR=172.29.236.100",
    "++ grep '^172.29.236.100\\b' /etc/hosts",
    "++ wc -l",
    "+ [[ 1 -ge 2 ]]",
    "+ grep -q '^172.29.236.100\\b' /etc/hosts",
    "+ sed -i 's|^172.29.236.100\\b.*|172.29.236.100 aio1.openstack.local aio1|' /etc/hosts",
    "+ sha1sum /etc/hosts",
    "+ awk '{print $1}'"
]
stdout
24b08f9cfdc4391d460506f20883a01f58b83867
stdout_lines
[
    "24b08f9cfdc4391d460506f20883a01f58b83867"
]