;those" answers, but the way you are
describing it looks to be a bit overcomplicated to me. E.g. even if it
can be done, sounds like it would be rather fiddly and unintuitive when
you decide to make configuration changes.
Best regards
--
Branko Majic
XMPP: bra...@majic.rs
Please use only Free fo
ch size
> hosts: deployservers
> serial: "{{ batch_deploy }}"
Here, the variable is called "batch_deploy". E.g. not the same as in
the inventory file (swapped batch/deploy in the name).
Best regards
--
Branko Majic
XMPP: bra...@majic.rs
Please use only Free forma
: /home/"{{ new_user_acct_name }}"/.ssh/authorized_keys
Any reason you wouldn't be using authorized_key module
(http://docs.ansible.com/ansible/latest/authorized_key_module.html)?
Best regards
--
Branko Majic
XMPP: bra...@majic.rs
Please use only Free formats when sending attachment
ers.
In your case, you should try running something similar to:
ansible --ask-become-pass --become-method su -b -k -m shell -a "/sbin/vgs" all
This will prompt you for two passwords - one for SSH connection, and
one for the _root_ user.
Best regards
--
Branko Majic
XMPP: bra...@majic
nally, the task as you have output it here would never run
because of syntax errors (even if you had it correctly included) -
because it's not valid yaml. It would need to look something similar
to (note the spaces and newlines):
- name: "restart crond service"
- service:
name: crond
h, keep in mind
that would make the task treated as successful for all other purposes
(e.g. ES.failed would be set to False).
Best regards
--
Branko Majic
XMPP: bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
XMPP: bra...@majic.rs
Молим вас да додатке шаље
ber of all groups in the
grouplist variable, your second task should be one of the following
(Ansible 2.3 can accept lists directly in "groups" attribute):
- name: Create users from vars users (Ansible 2.3+)
user:
name: "{{ item }}"
state: present
groups: "{{ gr
cal copy of it available to your playbooks (which, of course, you
need to remember to remove etc - after testing - once 2.4 comes out :)
Best regards
--
Branko Majic
XMPP: bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
XMPP: bra...@majic.rs
Молим в
fferent iteration?...Thank you
Did you consider using a bit of arithmetic instead? Or this is not
flexible enough for you?
E.g. you could do "{{ 100 + item | int }}" (take note you need the "|
int" on item because it's a string). Preferably you'd make the "100" a
param
cases where you
want to control ordering in more complex way than just the "meta deps
first" -> "then this role".
Finally, you had two replies related to avoid dependencies via meta,
something you should consider as well (I thought it'd be nice to
provide at least one more wa
gt; If I understand correctly what you want...
>
> ansible-playbook myplaybook.yml --tags=myspecialtag is what you're
> looking for...
>
> A tag can be use in more than one task...
>
> The doc :
> http://docs.ansible.com/ansible/playbooks_tags.html
>
>
> Regards,
could abuse the tags system
a bit to make the syntax less verbose/clearer.
Best regards
--
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.
--
You
could rerun those tasks to fix things up. Any opinions on this? I just
wonder if I could abuse tags in this way, though (i.e. having a when:
tag defined syntax).
Best regards
--
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
Џабер
ario possibly happens exclusively when
using handlers, since those are rather stateless (I'm sure you could
also trigger such behaviour with poorly designed command/shell
combination of tasks).
How do folks usually handle such situations?
Best regards
--
Branko Majic
Jabber: bra...@majic.rs
Pl
through the Ansible tutorials first, of course.
If you're trying to do something different, some more information about
what you are trying to achieve, how you have tried to do it, and what
issues you are having would be useful in order for people to be able to
help you.
Best regards
--
Branko
/developing_plugins.html which describes most of
I wrote (although, in a bit of a less verbose way, and without
examples).
I hope this helps.
Best regards
--
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да
suggestions. If someone has a good link to share, which
demonstrates solution for such a deployment, that'd be appreciated as
well :)
Best regards
--
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да
17 matches
Mail list logo