tripleo-quickstart-extras/roles/undercloud-setup/tasks/ansible_cfg.yml
Sagi Shnaidman 0de40307b8 Fix ansible linter issues for undercloud-setup
Change-Id: Ib5f00413d04f0b720ec291cef34f000ffde439af
2020-01-05 13:59:21 +00:00

38 lines
1.2 KiB
YAML

---
# Configure the undercloud to use ARA
# for ansible undercloud or standalone only. Ansible deployment of node
- name: Install ara deps
become: true
pip:
# noqa 403
name:
- pip
- setuptools
state: latest
# TODO(sshnaidm): https://bugs.launchpad.net/tripleo/+bug/1792622
ignore_errors: true
- name: Install ara
become: true
pip:
name: ara
state: present
version: "{{ undercloud_ara_version }}"
ignore_errors: true
- name: Update the default ansible callback setting in /etc/ansible/ansible.cfg
become: true
lineinfile:
path: /etc/ansible/ansible.cfg
regexp: '^#callback_plugins'
line: |
callback_plugins={% if ansible_python.version.major == 3 %}/usr/local/lib/python3.6/site-packages{% else %}/usr/lib/python2.7/site-packages{% endif %}/ara/plugins/callbacks
- name: Update the default ansible action setting in /etc/ansible/ansible.cfg
become: true
lineinfile:
path: /etc/ansible/ansible.cfg
regexp: '^#action_plugins'
line: |
action_plugins={% if ansible_python.version.major == 3 %}/usr/local/lib/python3.6/site-packages{% else %}/usr/lib/python2.7/site-packages{% endif %}/ara/plugins/actions