Hi there group,
I'm making my first baby steps with ansible. After fooling around with ad-hoc command I thought I'd make the steps to playbooks. Looks promissing :D
Ultimate goal is managing my switches, have been playing around with my Ubuntu systems thought. Thought I'd automate my update cyle... wrote a playbook for it (with help from severall posts I found on the web:
---
- hosts: somehost
tasks:
- name: Update and upgrade
become: true
apt:
upgrade: safe
update_cache: yes
autoremove: yes
this playbook breaks on the autoremove... and I can't figure out why
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [somehost]
TASK [Update and upgrade] ******************************************************
fatal: [somehost]: FAILED! => {"changed": false, "failed": true, "msg": "unsupported parameter for module: autoremove"}
PLAY RECAP *********************************************************************
somehost : ok=1 changed=0 unreachable=0 failed=1
When I look at the documentation for the APT module "yes" seems to be a correct vallue for autoremove.
Had a simular issue with "upgrade", but this was resolved by installing "aptitude" on the remote host. Allso made sure I've got "python-apt" installed.
Any help would be apreciated :D
Peter