ansible-for-devops
ansible-for-devops copied to clipboard
CI builds for first-ansible-playbook example are failing in GitHub Actions
I see:
TASK [Ensure chrony is running.] ***********************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to start service chronyd: Job for chronyd.service failed because the control process exited with error code. See \"systemctl status chronyd.service\" and \"journalctl -xe\" for details.\n"}
If I run the example locally (e.g. playbook=first-ansible-playbook.yml distro=centos7 tests/test.sh), then I see no errors, and idempotence works too.
I wonder if something else is conflicting with Chronyd inside GitHub Actions' environment?
Disabled that test for the time being.
I am also facing the issue, please let me know if you have any fix
I just encountered this issue too: Role runs fine in geerlingguy/docker-centos7-ansible:latest container on my (MacOS) Docker desktop, and on Docker on an Ubuntu vSphere VM, but not in GitHub Actions.