ptavares.ansible_role_manage_system
ansible-role-manage-system
Ansible role for managing a system (updating, installing/removing packages, and cleaning).
Requirements
This role has been tested with Ansible version 2.5 or higher.
Role Variables
Available variables and their default values are listed below. For more details, check defaults/main.yml:
System Update
# Whether to perform a system update
system_update: false
# Whether to apply only security updates
system_update_security_only: false
Install/Remove Packages
# -----------------------------------
# Common for Debian/Ubuntu/Centos/RHEL
# -----------------------------------
# List of packages to install
system_packages_install:
- wget
- curl
- vim
- p7zip-full
- p7zip-rar
- dos2unix
- network-manager
- network-manager-openvpn
- jq
- python
- python-pip
- jmtpfs
- dar
# List of packages to remove
system_packages_remove:
- light-locker
- nano
# ----------------------
# Specific for Debian/Ubuntu
# ----------------------
system_deb_urls:
- "https://prerelease.keybase.io/keybase_amd64.deb"
# --------------------
# Specific for Centos/RHEL
# --------------------
system_rpm_urls:
- "https://prerelease.keybase.io/keybase_amd64.rpm"
Clean System
# Whether to perform a system clean
system_clean: true
Dependencies
No dependencies.
Example Playbook
- hosts: all
roles:
- role: ptavares.ansible_role_manage_system
Inside vars/main.yml
:
- Copy the content of defaults/main.yml into your playbook's vars file.
- Customize it as needed by filling in the role's variables.
License
MIT
Informazioni sul progetto
Ansible role for managing system (update - install/remove packages - clean)
Installa
ansible-galaxy install ptavares.ansible_role_manage_system
Licenza
mit
Download
175
Proprietario