Ok so here is what I tried.
4 playbooks.
- 00.yml just calls 3 other playbooks:
- import_playbook: '/opt/ansible/playbook/test/01.yml'
- import_playbook: '/opt/ansible/playbook/test/02.yml'
- import_playbook: '/opt/ansible/playbook/test/03.yml'
*01.yml:*
---
- hosts: localhost
become: yes
Do you have a practical example?
I am new here 😊
From: ansible-project@googlegroups.com On
Behalf Of Stephen Maher
Sent: Monday, January 6, 2020 1:15 PM
To: ansible-project@googlegroups.com
Subject: Re: [ansible-project] Calling the same role from multiple playbooks
Hi,
Have you
Hi,
Have you looked at ansible merge vars plugin?? We use this extensively with
roles and it works well.
https://pypi.org/project/ansible-merge-vars/
Cheers
Steve
> On 2 Jan 2020, at 22:08, Claudio M. Lombardo wrote:
>
> Hello All.
> I am trying to solve the following issue.
>
> - I have
On Mon, 6 Jan 2020 08:22:38 -0800 (PST)
"Claudio M. Lombardo" wrote:
> I am stuck. I would like to keep the information in both playbooks and have
> a final sssd.conf that contains all the ldap groups declared.
Let's try to minimise the problem. For example,
1) playbook A applies variable LDA
My apologies if I was not clear.
Here is a better description (I hope!).
Let's say there are 2 playbooks.
Playbook 1 does a bunch of stuff, including calling a role that sets the
SSSD.conf with default settings, including the ldap_access_filter settings.
Then, playbook one "calls" playbook 2
On 03.01.2020 20:53, Audiolomb wrote:
I do not see on how either one of those solutions would work.
The assemble module concatenates files. My configuration needs to be
merged, not concatenated...
Well, you wrote "merge" but you did not specify how you would like it to be
"merged".
"Merge" an
I do not see on how either one of those solutions would work.
The assemble module concatenates files. My configuration needs to be
merged, not concatenated...
On Friday, January 3, 2020 at 12:33:08 AM UTC-8, Kai Stian Olstad wrote:
>
> On 02.01.2020 23:08, Claudio M. Lombardo wrote:
> > - I als
I do not see on how either one of those solutions would work.
The assemble module concatenates files. My configuration needs to be
merged, not concatenated...
On Friday, January 3, 2020 at 12:34:09 AM UTC-8, Mehul Ved wrote:
>
> Have you had a look at
> https://docs.ansible.com/ansible/latest/
Have you had a look at
https://docs.ansible.com/ansible/latest/user_guide/playbooks_advanced_syntax.html#yaml-anchors-and-aliases-sharing-variable-values
?
On Fri, 3 Jan, 2020, 3:38 AM Claudio M. Lombardo,
wrote:
> Hello All.
> I am trying to solve the following issue.
>
> - I have a SSSD role w
On 02.01.2020 23:08, Claudio M. Lombardo wrote:
- I also have playbooks organized hierarchically:
00-base.yml calls only playbooks (01-, 02-yyy, 03-zzz, etc.)
01- is called first, and sets up common stuff for all my machines
(like
basic firewall rules, subscription to satellite, etc.
Hello All.
I am trying to solve the following issue.
- I have a SSSD role which configures my target machine via a .j2 template
which contains a bunch of stuff, including the ldap_access_filter parameter.
- I also have playbooks organized hierarchically:
00-base.yml calls only playbooks (01-xxx
11 matches
Mail list logo