Last active
February 16, 2021 17:23
-
-
Save dmsimard/bfcf5d1bcab79985288110e8820b3e68 to your computer and use it in GitHub Desktop.
Installing ara with ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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