ansible_role_manage_system

Build Status Ansible Role Ansible Role Ansible Role License

ansible-role-mange-system

Ansible role for managing system system (update - install/remove packages - clean)

Requirements

Only tested with ansible 2.5 min version

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

System update

# Wether or not call update-system task
system_update: false
# Whether or not only applies security updates
system_update_security_only: false

Install/Remove packages

# -----------------------------------
# Common to Debian/Ubuntu/Centos/RHEL
# -----------------------------------
# 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

# Package to remove
system_packages_remove:
  - light-locker
  - nano

# ----------------------
# Specific Debian/Ubuntu
# ----------------------
system_deb_urls:
  - "https://prerelease.keybase.io/keybase_amd64.deb"

# --------------------
# Specific Centos/RHEL
# --------------------
system_rpm_urls:
  - "https://prerelease.keybase.io/keybase_amd64.rpm"

Clean system

# Wether or not call clean-system task
system_clean: true

Dependencies

No dependencie

Example Playbook

- hosts: all
  roles:
    - role: ptavares.ansible_role_mange_system

Inside vars/main.yml:

  • Copy content of defaults/main.yml in your playbook's vars file.
  • Customize it as you like (filling role's variables)

License

MIT

About

Ansible role for managing system (update - install/remove packages - clean)

Install
ansible-galaxy install ptavares/ansible-role-manage-system
GitHub repository
License
mit
Downloads
162