chattr fails sometimes in ansible 2.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When running the galera server playbook the chattr command fails sometimes which is happening within the lineinfile module when we edit /etc/services
Example error - http://
# ansible --version
Variable files: "-e @/etc/openstack
cat /et ansible 2.4.2.0
config file = None
configured module search path = ['/etc/
ansible python module location = /opt/ansible-
executable location = /opt/ansible-
python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://
SUPPORT_URL="http://
BUG_REPORT_URL="http://
VERSION_
UBUNTU_
Changed in openstack-ansible: | |
status: | New → Invalid |
looks like this is just an issue with ansible 2.4.2, once I upgraded to 2.4.3 everything seems to be fine.
root@cloudnull- ubuntu- nspawn: /opt/openstack- ansible/ playbooks# ansible --version _deploy/ user_secrets. yml -e @/etc/openstack _deploy/ user_variables. yml " ansible/ roles/plugins/ library' ] runtime/ lib/python3. 5/site- packages/ ansible runtime/ bin/ansible
Variable files: "-e @/etc/openstack
ansible 2.4.3.0
config file = None
configured module search path = ['/etc/
ansible python module location = /opt/ansible-
executable location = /opt/ansible-
python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]