atom
:warning::rotating_light: This project is no longer maintained and has been archived.
Ansible Role: atom
Role to install (by default) atom package or uninstall (if passed as var) on Ubuntu and CentOS systems.
Requirements
None.
Role Variables
Available variables are listed below (located in defaults/main.yml
):
Variables list:
atom_app: atom
atom_desired_state: present
atom_gpg_key: https://packagecloud.io/AtomEditor/atom/gpgkey
atom_repo_desired_state: present
atom_repo_debian: deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main
atom_repo_debian_filename: atom
atom_repo_el: https://packagecloud.io/AtomEditor/atom/el/7/$basearch
atom_repo_el_name: Atom
atom_repo_el_description: Atom Editor
atom_repo_el_gpgcheck: no
atom_repo_el_repogpgcheck: yes
atom_repo_el_enabled: yes
atom_repo_el_filename: atom
Variables table:
Variable | Description |
---|---|
atom_app | Defines the app to install i.e. atom |
atom_desired_state | Defined to dynamically set whether to install (i.e. either present or latest ) or uninstall (i.e. absent ) the package. Defaults to present |
atom_gpg_key | GPG key for Atom |
atom_repo_desired_state | State for repo to download Atom from. Can either be 'present' or 'absent'. |
atom_repo_debian | Atom's repo link for Debian based systems. |
atom_repo_debian_filename | Name of file to save for atom's repo in /etc/apt/sources.list.d/ |
atom_repo_el | Atom's repo link for EL based systems. |
atom_repo_el_name | Atom repo name for EL based systems. |
atom_repo_el_description | Description for Atom's repo for EL based systems. |
atom_repo_el_gpgcheck | Boolean operation for performing gpg check against gpg key. Can either be yes or no. |
atom_repo_el_repogpgcheck | Boolean operation for performing gpg check against atom's repository gpg. Can either be yes or no. |
atom_repo_el_enabled | Boolean operation for setting repository to enabled or disabled. Can either be yes or no. |
atom_repo_el_filename | Name of file to save for atom's repo in /etc/yum.repos.d/ |
Dependencies
None
Example Playbook
For default behaviour of role (i.e. installation of atom package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.atom
For customizing behavior of role (i.e. installation of latest atom package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.atom
vars:
atom_desired_state: latest
For customizing behavior of role (i.e. un-installation of atom package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.atom
vars:
atom_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Install
ansible-galaxy install darkwizard242/ansible-role-atom
License
mit
Downloads
5554
Owner
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!