[ansible-project] hcloud plugin - working with dynamic inventory

2019-08-24 Thread Alexey Lesovsky
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

Re: [ansible-project] Re: Execute task for specific host.

2015-02-10 Thread Alexey Lesovsky
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" >

Re: [ansible-project] Execute task for specific host.

2015-02-06 Thread Alexey Lesovsky
, 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

Re: [ansible-project] Execute task for specific host.

2015-02-06 Thread Alexey Lesovsky
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" } >

[ansible-project] Execute task for specific host.

2015-02-06 Thread Alexey Lesovsky
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

[ansible-project] optimize playbook

2014-04-30 Thread Alexey Lesovsky
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

Re: [ansible-project] access to the variable

2014-04-30 Thread Alexey Lesovsky
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 >

[ansible-project] access to the variable

2014-04-30 Thread 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

[ansible-project] put to the galaxy a role which has no dedicated repo

2014-04-26 Thread Alexey Lesovsky
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