Hi,
I try to run this in a dedicated playbook test.yml :
---
- hosts: localhost
tasks:
- name: Create Django user for database
sudo: yes
sudo_user: postgres
postgresql_user:
user=django
password=django
role_attr_flags=CREATEDB,NOSUPERUSER,NOCREATEROLE
On 11/02/2014 01:49 PM, 'Diogene Laerce' via Ansible Project wrote:
Hi,
I try to run this in a dedicated playbook test.yml :
---
- hosts: localhost
tasks:
- name: Create Django user for database
sudo: yes
sudo_user: postgres
postgresql_user:
user=django
Hey Michael (and anyone else interested),
I’ve been working on the deploy_helper module, but it’s not ready for a
pull-request just yet.
From the perspective of a consumer, I think a common deploy role looks
something like this (following along the lines of a deploy procedure that
uses
Hey guys,
I'm trying to write an ansible playbook with the shell module. In the
command, I'm want to use the eth1 interface if it exists. If the eth1
interface doesn't exist, it should fallback to the loopback interface.
My initial approach was to use the defaulting undefined variables as
Hi there!
I've these options in my ansible.cfg:
[ssh_connection]
pipelining=True
ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=7200s
On an older version (Ansible 1.6 development, shortly before 1.7 was
final), these settings make deploying relatively fast.
On Ansible
Hi All,
I'm getting an error when trying to attach and EIP to an EC2 AMI thats
provisioned with Ansible. The instance is provisioned correctly but then I
receive the error below. The key pair used has full administrative access
to AWS
PLAY [localhost]
the setup module (and any playbooks) takes an extra 2 min for a fedora 20
based vm. other ansible modules, at least command(date) and yum (upgrade
all), take less than a second, on an up to date machine.
tried from os x 10.10 (homebrew) and ubuntu 14.04, both running ansible
1.7.2. heres, the
Hello,
I'm running ansible-playbook 1.7.2 on Centos 6 and after running ok for a
couple of weeks, now I'm getting this:
https://lh5.googleusercontent.com/-I6RPfiltD-o/VFP4D5X6e2I/BYY/DAxhmNUlszc/s1600/Screen%2BShot%2B2014-10-31%2Bat%2B3.48.28%2BPM.png
Note that the /tmp full path is
I like Ubuntu but I want to switch to Fedora. I'm trying to port my
playbooks that I wrote to work on Ubuntu and port them to Fedora. Here is
the most I've been able to factor my roles down to:
---
- name: file system related packages (Ubuntu)...
apt: name={{item}}
when:
Is there a way to run the handlers with a different `serial` value than the
rest of the play ?
What I want is to install my services in large batches (usually, on all the
machines at once) and if any of those services needs to be restarted, I
want to perform that operation on X machines at a
What is your control machine (machine you are running ansible from)?
Ansible 1.8 now chooses paramiko as the smart transport when running from
Mac. If this is your case, you will need to set transport = ssh under
defaults as well.
You can verify if you are using ssh or paramiko by running with
Jinja2 is a little more picky about using dot notation as opposed to []
type notation as it pertains to using default
You might want to try:
ansible_eth1[ipv4][address] | default(127.0.0.1)
You may also need to place the default closer to ansible_eth1 as opposed to
deeper nesting like it is
I believe your approach to be the most robust and standard within the
community.
There is this concept of DRY that I feel too many people get captured in.
In general I would say that much of The Zen of Python applies to
overthinking playbooks too.
One thing that you need to take into account is
It might help to actually state what the syntax error is.
Also what version of ansible are you using?
On Sunday, November 2, 2014, hce h jupiter@gmail.com wrote:
Hi,
The following examples gave me a syntax error, appreciate clues to use
template inside creates statement.
shell: cp
Thanks Matt, please see following comments:
On Monday, November 3, 2014 12:44:38 PM UTC+11, Matt Martz wrote:
It might help to actually state what the syntax error is.
ERROR: Syntax Error while loading YAML script copyCert.yml
creates: /etc/{{ my_server }}.crt
15 matches
Mail list logo