Created
July 11, 2015 21:42
-
-
Save pgmillon/fd4542bfdbe4cad39306 to your computer and use it in GitHub Desktop.
Ansible trouble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook -i hosts test.yml -u ubuntu -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[localhost] | |
localhost ansible_python_interpreter=/home/pgmillon/.virtualenv/ansible/bin/python | |
[db] | |
127.0.0.1:2222 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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