darkwizard242.atom
⚠️🚨 This project is not maintained anymore and has been archived.
Ansible Role: atom
This role installs the atom package by default or uninstalls it if specified, for Ubuntu and CentOS systems.
Requirements
None.
Role Variables
You can find the available variables below (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 | The application to install, i.e., atom |
atom_desired_state | Sets whether to install (e.g., present or latest ) or uninstall (e.g., absent ) the package. Default is present . |
atom_gpg_key | GPG key for Atom. |
atom_repo_desired_state | State for the repository to download Atom from. Can be 'present' or 'absent'. |
atom_repo_debian | Repository link for Debian-based systems. |
atom_repo_debian_filename | Name of the file to save for atom's repo in /etc/apt/sources.list.d/ . |
atom_repo_el | Repository link for EL-based systems. |
atom_repo_el_name | Name of the Atom repository for EL-based systems. |
atom_repo_el_description | Description of Atom's repository for EL-based systems. |
atom_repo_el_gpgcheck | Option for doing a GPG check against the GPG key. Can be yes or no. |
atom_repo_el_repogpgcheck | Option for doing a GPG check against Atom's repository GPG. Can be yes or no. |
atom_repo_el_enabled | Option to enable or disable the repository. Can be yes or no. |
atom_repo_el_filename | Name of the file to save for atom's repo in /etc/yum.repos.d/ . |
Dependencies
None.
Example Playbook
For the default behavior of the role (i.e., installing the atom package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.atom
To customize the behavior of the role (i.e., installing the latest atom package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.atom
vars:
atom_desired_state: latest
To customize the behavior of the role (i.e., uninstalling the 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.
Informazioni sul progetto
Atom editor ansible role for installation/uninstallation.
Installa
ansible-galaxy install darkwizard242.atom
Licenza
mit
Download
5.9k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!