-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure-environment.yml
36 lines (36 loc) · 1.32 KB
/
configure-environment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- hosts: localhost
connection: local
vars:
host_key_checking: False
cloud_user_password: cloudstack
tasks:
- name: fetch container ssh port
shell: docker port cloudstack 22 | cut -d ":" -f 2
register: container_ssh_port
- name: create new ansible inventory for container
template: src=build/inventory.j2 dest=./hosts
- name: ensure sshpass is installed (Arch)
pacman: name=sshpass state=present
sudo: true
when: ansible_os_family == "Archlinux"
- name: ensure sshpass is installed (Debian)
apt: name=sshpass state=latest
sudo: true
when: ansible_os_family == "Debian"
- name: ensure sshpass is installed (RedHat)
yum: name=sshpass state=latest
sudo: true
when: ansible_os_family == "RedHat"
- name: ensure sshpass is installed (SUSE)
zypper: name=http://download.opensuse.org/repositories/openSUSE:/Factory/standard/x86_64/sshpass-1.05-1.2.x86_64.rpm state=present
sudo: true
when: ansible_os_family == "Suse"
- name: ensure sshpass is installed (Arch)
pacman: name=sshpass state=present
sudo: true
when: ansible_os_family == "Archlinux"
- name: ensure sshpass is installed (Gentoo)
portage: name=net-misc/sshpass state=present
sudo: true
when: ansible_os_family == "Gentoo"