Last active
November 23, 2022 00:47
-
-
Save akulbe/d7fce57f7f6c43c49cc89883b7e9baa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Update the boxes | |
hosts: all | |
become: true | |
gather_facts: true | |
tasks: | |
- name: Upgrade all packages RPM | |
ansible.builtin.package: | |
name: "*" | |
state: latest | |
- name: Remove unneeded packages | |
ansible.builtin.dnf: | |
autoremove: yes | |
(.venv) akulbe (e) akulbe master ~ Code maintenance ansible --version | |
ansible [core 2.14.0] | |
config file = /home/akulbe/Code/maintenance/ansible.cfg | |
configured module search path = ['/home/akulbe/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/akulbe/.venv/lib/python3.10/site-packages/ansible | |
ansible collection location = /home/akulbe/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/akulbe/.venv/bin/ansible | |
python version = 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] (/home/akulbe/.venv/bin/python3) | |
jinja version = 3.1.2 | |
libyaml = True | |
(.venv) akulbe (e) akulbe master ~ Code maintenance ansible-doc -vvv ansible.builtin.dnf | |
ansible-doc [core 2.14.0] | |
config file = /home/akulbe/Code/maintenance/ansible.cfg | |
configured module search path = ['/home/akulbe/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/akulbe/.venv/lib/python3.10/site-packages/ansible | |
ansible collection location = /home/akulbe/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/akulbe/.venv/bin/ansible-doc | |
python version = 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] (/home/akulbe/.venv/bin/python3) | |
jinja version = 3.1.2 | |
libyaml = True | |
Using /home/akulbe/Code/maintenance/ansible.cfg as config file | |
[WARNING]: errors were encountered during the plugin load for ansible.builtin.dnf: ['endswith first arg must be str or a tuple of str, not list'] | |
[WARNING]: ansible.builtin.dnf was not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment