44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
---
|
|
#playbook to test items on localhost
|
|
|
|
- hosts: localhost
|
|
become: true
|
|
|
|
# vars:
|
|
# java_packages:
|
|
# - openjdk-7-jdk
|
|
#
|
|
# roles:
|
|
# - jenkins
|
|
# - devtools
|
|
# - {
|
|
# role: website,
|
|
# server_hostname: "htmlgames.xai-corp.net",
|
|
# server_root: "/var/www/{{ server_hostname }}",
|
|
# repo: "/home/richard/Documents/Aptana\ Studio\ 3/xai-corp\ workspace/htmlgames/"
|
|
# }
|
|
|
|
tasks:
|
|
|
|
- name: install apt repo
|
|
apt_repository:
|
|
repo: deb https://apt.dockerproject.org/repo ubuntu-xenial main
|
|
state: present
|
|
|
|
- name: import repo key
|
|
apt_key:
|
|
id: 58118E89F3A912897C070ADBF76221572C52609D
|
|
keyserver: "hkp://ha.pool.sks-keyservers.net:80"
|
|
state: present
|
|
|
|
- name: install prerequisits
|
|
shell: apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual
|
|
|
|
- name: install via apt
|
|
apt:
|
|
state: latest
|
|
update_cache: true
|
|
package: "{{ item }}"
|
|
with_items:
|
|
- docker-engine
|