update docker and postgres installs

This commit is contained in:
2018-01-07 12:43:41 -05:00
parent 771dfabd69
commit bc08842d57
8 changed files with 121 additions and 40 deletions

View File

@@ -2,13 +2,24 @@
#playbook to test items on localhost
- hosts: localhost
gather_facts: yes
become: true
# vars:
# java_packages:
# - openjdk-7-jdk
#
# roles:
vars:
docker:
init_config:
instances:
- url: "unix://var/run/docker.sock"
new_tag_names: true
dockerhost:
users:
- dd-agent
- richard
- ansible
roles:
- dockerhost
# - jenkins
# - devtools
# - {
@@ -18,26 +29,3 @@
# 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