Hi,
Trying to create a dynamic inventory using hcloud plugin and have some
issues.
Hetzner servers might have user-defined labels and I'm trying to define
servers into groups using labels.
As I can see my test server has labels:
$ hcloud server list -o columns=name,status,labels
NAME STATUS L
Thanks, it's good for me!
On Wed, Feb 11, 2015 at 12:10 AM, Chip Selden wrote:
> Alexey,
>
> The easiest way to do this is to use hostvars in your inventory and set a
> "role" variable for each host. Then, in your task you could be:
>
> tasks:
> - name: Task
> command: "/usr/bin/somecommand"
>
, 17:48:02 UTC+5 пользователь Giovanni Tirloni
написал:
>
> On Fri, 06 Feb 2015 03:27 -0800, Alexey Lesovsky >
> wrote:
> > Hello all!
> > I have playbook with following parts:
> >
> > vars:
> > servers:
> > - { address: "192.168.12
Igor
>
> On Fri, Feb 6, 2015 at 2:27 PM, Alexey Lesovsky > wrote:
> > Hello all!
> > I have playbook with following parts:
> >
> > vars:
> > servers:
> > - { address: "192.168.122.12", role: "upstream" }
>
Hello all!
I have playbook with following parts:
vars:
servers:
- { address: "192.168.122.12", role: "upstream" }
- { address: "192.168.122.13", role: "downstream" }
- { address: "192.168.122.14", role: "downstream" }
task:
- name: Task
command: "/usr/sbin/somecommand"
How I
Hi all!
I write role for Ansible Galaxy, and have a little problem. I have 2 host
groups and need execute different tasks for this groups. At this moment I
doing it with the following configuration, this is the root playbook.yml
- hosts: all
sudo: yes
sudo_user: root
vars_files:
- 'defa
ginning of the line is defining a list/array element, as
> opposed to a dict/hash
>
> In your current configuration, you would need to use 'service_user[0].name'
>
> --
> Matt Martz
> ma...@sivel.net
>
> On April 30, 2014 at 7:05:50 AM, Alexey Lesovsky
>
Hi all!
Have some trouble in the access to the part of variable.
I have following configuration:
service_user:
- { name: "service", pass: "blablabla", flags: "ADMIN" }
and later:
- name: "Stage 3: start service"
command: "start-service.sh -u {{ service_user.name }}"
when playbook playing, a
Hi all!
I have github repo with several roles. How I can put to the galaxy one of
these roles? That even possible?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an emai