Skip to content
Snippets Groups Projects
Commit 76f4ed87 authored by Lars Beckers's avatar Lars Beckers
Browse files

add new management role for ansible, etc.

parent 7dce5a57
No related branches found
No related tags found
No related merge requests found
---
mgmt_ansible_version: stable-2.3
export PATH="/opt/ansible/bin:/opt/ansible/test/runner:$PATH"
export PYTHONPATH="/opt/ansible/lib:$PYTHONPATH"
export MANPATH="/opt/ansible/docs/man:$MANPATH"
---
- name: rebuild ansible and its documentation
command: make clean all docs
args:
chdir: /opt/ansible
- name: rebuild ansible egg info
command: python setup.py egg_info
args:
chdir: /opt/ansible
---
- name: ensure required software for ansible is installed
apt:
name: {{ item }}
state: installed
with_items:
- python-yaml
- python-jinja2
- python-paramiko
- python-cryptography
- python-sphinx # documentation
- asciidoc # documentation
- squashfs-tools # needed for guest-overlay
tags:
- management
- ansible
- name: ensure ansible is up to date
git: ansible to opt
dest: /opt/ansible
recursive: yes
repo: https://github.com/ansible/ansible.git
version: {{ mgmt_ansible_version }}
notify:
- rebuild ansible and its documentation
- rebuild ansible egg info
tags:
- management
- ansible
- name: ensure the environment is set up for running ansible (bash)
copy:
src: ansible.sh
dest: /etc/profile.d/ansible.sh
owner: root
group: root
mode: 0644
tags:
- management
- ansible
- name: ensure the environment is set up for running ansible (zsh)
lineinfile:
line: 'source /etc/profile.d/ansible.sh'
path: /etc/zsh/zshenv
state: present
tags:
- management
- ansible
- name: ensure we can ipmi other hosts
apt:
name: ipmitool
state: installed
tags:
- management
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment