Skip to content

Instantly share code, notes, and snippets.

@pgmillon
Created July 11, 2015 21:42
Show Gist options
  • Save pgmillon/fd4542bfdbe4cad39306 to your computer and use it in GitHub Desktop.
Save pgmillon/fd4542bfdbe4cad39306 to your computer and use it in GitHub Desktop.
Ansible trouble
ansible-playbook -i hosts test.yml -u ubuntu -v
[localhost]
localhost ansible_python_interpreter=/home/pgmillon/.virtualenv/ansible/bin/python
[db]
127.0.0.1:2222
- name: PostgreSQL packages
apt: name={{item}} state=present
with_items:
- postgresql
- libpq-dev
- python-psycopg2
register: pginstall
- name: Download maven artifact from Public Release
local_action: get_url
url="https://repo1.maven.org/maven2/activemq/activemq-ra/2.1/activemq-ra-2.1.pom"
dest="/tmp/toto.pom"
force=yes
sudo: false
- hosts: db
sudo: yes
gather_facts: no
roles:
- role: postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment