geerlingguy / geerlingguy/ansible-for-devops
Vagrant up and provisioning failing
- Dominant language
- Python
- Stars
- 9.9k
- Forks
- 3.8k
- PR merge metrics
- No merged PRs in 30d
Description
I am following chapter 2 and the playbook is resulting in an error
```
- hosts: all
become: yes
tasks:
- dnf: name=chrony state=present
- service: name=chronyd state=started enabled=ye
```s
```
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [default]
[DEPRECATION WARNING]: Distribution centos 8.7 on host default should use
/usr/libexec/platform-python, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will
default to using the discovered platform python for this host. See https://docs
.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for
more information. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
TASK [dnf] *********************************************************************
fatal: [default]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8 [SSL certificate problem: self signed certificate in certificate chain]", "rc": 1, "results": []}
PLAY RECAP *********************************************************************
default : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
```
I am using iMac os version Monterey 12.6.2. Also I had to execute this line `vagrant box add geerlingguy/rockylinux8 --insecure` before `vagrant provision`
Please guide.
Regards,
Nitin
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.