Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Last active February 16, 2021 17:23
Show Gist options
  • Save dmsimard/bfcf5d1bcab79985288110e8820b3e68 to your computer and use it in GitHub Desktop.
Save dmsimard/bfcf5d1bcab79985288110e8820b3e68 to your computer and use it in GitHub Desktop.
Installing ara with ansible
- name: Install ara with ansible
hosts: localhost
gather_facts: yes
tasks:
- name: Install ara for the current user
command: "{{ ansible_python }} -m pip install ara[server]"
- name: Get path to the ara callback plugin
command: "{{ ansible_python }} -m ara.setup.callback_plugins"
register: _callback_plugins
- name: Enable the callback plugin by default
community.general.ini_file:
path: "{{ ansible_user_dir }}/.ansible.cfg"
section: defaults
option: callback_plugins
value: "{{ _callback_plugins.stdout }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment