Commit a6ed496b authored by Rafael Monnerat's avatar Rafael Monnerat

Added roles, group_vars and sample for debian setup.

parent 5e22ea70
---
base_open_build_url: http://download.opensuse.org/repositories/home:/VIFIBnexedi/
- name: Install slapos-node on Debian
apt: name=slapos-node state=present update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian"
- name: Install re6stnet on Debian
apt: name=re6stnet state=present update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian"
- name: Install re6stnet on CentOS
yum: name=re6st-node state=present update_cache=yes cache_valid_time=3600
when: ansible_os_family == "RedHat"
- name: Install slapos on CentOS
yum: name=slapos-node state=present update_cache=yes cache_valid_time=3600
when: ansible_os_family == "RedHat"
- name: Install Debian 7 repository key
apt_key: url={{ base_open_build_url }}/Debian_7.0/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install Debian 6 repository key
apt_key: url={{ base_open_build_url }}/Debian_6.0/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
- name: Install Debian 7 repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_7.0/ ./' state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install Debian 6 repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_6.0/ ./' state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
tasks:
- name: Install slapos-node
apt: name=slapos-node state=present update_cache=yes cache_valid_time=3600
- name: Install re6stnet
apt: name=re6stnet state=present update_cache=yes cache_valid_time=3600
roles:
- repository
- package
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment