Re: [ansible-project] Can we run roles in parallel for multiple hosts?

2022-06-27 Thread Marc Haber
all Configuration management, deployment, and task execution system | ii ansible-mitogen 0.3.2-1 all Fast connection strategy for Ansible | [5/5064]mh@drop:~ $ Greetings Marc -- ----- Marc Haber | "

Re: [ansible-project] Can we run roles in parallel for multiple hosts?

2022-06-27 Thread Marc Haber
Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an Ameri

Re: [ansible-project] Playbook structure

2022-05-13 Thread Marc Haber
n3', 'python3-apt'] > > >   ⦙ ⦙ ⦙ state: present > > - name: install ansible dependencies > apt: > name: > - python3 > - python3-apt >state: present Fair enough, thanks. Those hints are the most important. Greetings Marc -- ---

Re: [ansible-project] Playbook structure

2022-05-12 Thread Marc Haber
Hi Dirk, On Tue, May 10, 2022 at 08:30:13AM +0200, Dick Visser wrote: > On 2022-05-09 (Mon) 22:06, Marc Haber wrote: > > after using ansible for quite a while, my project to manage my own > > servers has grown to a respectable size. I was a puppet user before, so > > I have

[ansible-project] Playbook structure

2022-05-09 Thread Marc Haber
pt update command: "apt-get update" if I intend to notify this handler from any role that might use the apt provider to install packages? Thank you in advance! Greetings Marc -- ----- Marc Haber | "I don

Re: [ansible-project] Task reported as "changed" even if unchanged

2020-05-16 Thread Marc Haber
ings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an Americ

[ansible-project] Task reported as "changed" even if unchanged

2020-05-16 Thread Marc Haber
smetic reasons and for statistics? Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 16004

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-09 Thread Marc Haber
On Sat, May 09, 2020 at 09:21:34AM +0200, Stefan Hornburg (Racke) wrote: > On 5/9/20 9:09 AM, Marc Haber wrote: > > On Sat, May 09, 2020 at 08:53:37AM +0200, Stefan Hornburg (Racke) wrote: > >> I don't have a custom module around which I could share here. Searching > >>

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-09 Thread Marc Haber
module called from a task (a) has access to the full inventory including all variables and (b) can write to it with following tasks seeing the changes it did? Greetings Marc -- ----- Marc Haber | "I don't trust Compu

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-09 Thread Marc Haber
On Sat, May 09, 2020 at 07:49:46AM +0200, Stefan Hornburg (Racke) wrote: > On 5/9/20 7:36 AM, Marc Haber wrote: > >>> Can a custom inventory plugin access what the previously running > >>> inventory plugins have parsed, and can it augment structure that was >

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-08 Thread Marc Haber
On Sat, May 02, 2020 at 04:12:11PM +0200, Stefan Hornburg (Racke) wrote: > On 5/2/20 3:35 PM, Marc Haber wrote: > > On Tue, Apr 28, 2020 at 09:48:23AM +0200, Stefan Hornburg (Racke) wrote: > >> On 4/27/20 10:12 AM, Marc Haber wrote: > >>> Let's assume I have a servic

Re: [ansible-project] file src and state=absent together

2020-05-03 Thread Marc Haber
stand why they are doing this change. It make us > write > more code that IMHO makes the code more difficult to read. I could not agree more. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. T

[ansible-project] file src and state=absent together

2020-05-02 Thread Marc Haber
gfile }}" state: "absent" when: "{{ (instance.instance_data.mpm!='prefork') }}" loop_control: loop_var: "configfile" loop: - "mpm_prefork.load" - "mpm_prefork.conf" causing a lot of duplication. Greetings Marc -

Re: [ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-05-02 Thread Marc Haber
Hi Stefan, thanks for your answer. I busied myself with working around the issue temporarily because I had to get a project forward. On Tue, Apr 28, 2020 at 09:48:23AM +0200, Stefan Hornburg (Racke) wrote: > On 4/27/20 10:12 AM, Marc Haber wrote: > > Let's assume I have a service that c

[ansible-project] Writing/Augmenting Host Variables from a Playbook.

2020-04-27 Thread Marc Haber
for the standard cases. I could have a program read in the inventory, write out a temporary inventory with the "augmented" host variables and then have ansible run from this, but I hope that this won't be necessary... Greetings Marc -- -

[ansible-project] add list from host variables and group variables

2019-05-25 Thread Marc Haber
ort against ansible where I could read up on the situation? Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder |

[ansible-project] Re: use facts from another task

2019-05-25 Thread Marc Haber
On Wed, May 22, 2019 at 05:55:39PM +0200, Marc Haber wrote: > How would I make the ansible_facts.packages dictionary universally > availabe while only collecting the list of installed packages once? Solved, I had my tags wrong. Learned about the "always" Tag, which is really nice.

[ansible-project] use facts from another task

2019-05-22 Thread Marc Haber
e package_facts role to be re-executed over and over and over again which takes ages. How would I make the ansible_facts.packages dictionary universally availabe while only collecting the list of installed packages once? Greetings Marc -- ------

Re: [ansible-project] Host lists, facts and handlers

2018-05-17 Thread Marc Haber
Hi Kai, (apology for taking six weeks to answer from other mail applies hier as well) On Tue, Apr 03, 2018 at 09:58:56PM +0200, Kai Stian Olstad wrote: > On 02.04.2018 16:53, Marc Haber wrote: > > On Sat, Mar 31, 2018 at 09:39:37PM +0200, Kai Stian Olstad wrote: > > > On Satur

Re: [ansible-project] Host lists, facts and handlers

2018-05-17 Thread Marc Haber
e my code not be the fault for constant annoyance about things being slow. -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fo

Re: [ansible-project] Host lists, facts and handlers

2018-04-02 Thread Marc Haber
make immediate sense from the hint, and the Examples only contain code building lists, not making use of them. Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany

Re: [ansible-project] Host lists, facts and handlers

2018-04-02 Thread Marc Haber
Hi Kai, thanks for helping! On Sat, Mar 31, 2018 at 09:39:37PM +0200, Kai Stian Olstad wrote: > On Saturday, 31 March 2018 20.35.46 CEST Marc Haber wrote: > > First ansible run: > > [51/5036]mh@drop:~/git/zgansibletest (master * u+1) (crm) $ > > ansible-playbook --ask-be

[ansible-project] Host lists, facts and handlers

2018-03-31 Thread Marc Haber
ngs are as I want them. However, the way to get there is unsatisfactory. Can somebody explain what is happening and tell me how to do things right? If inserting debug code helps, I'll happily do this, but I do not yet know too well how to do this, so please suggest pasteable things. Thanks in advanc

[ansible-project] Re: How to handle lists of files and avoid unnecessary changes

2017-11-09 Thread Marc Haber
On Wed, Nov 08, 2017 at 08:47:08PM +0100, Marc Haber wrote: > - roll out the new contents, build a list of files being rolled out > - build the list of files found on the remote system > - delete files that are in list 2 but not in list 1. This is what I did and it works. Here my

Re: [ansible-project] How to handle lists of files and avoid unnecessary changes

2017-11-09 Thread Marc Haber
On Wed, Nov 08, 2017 at 09:58:32PM +0100, Kai Stian Olstad wrote: > On 08.11.2017 20:47, Marc Haber wrote: > > When I change a system from testing to stable, I want the all > > testing*.list to vanish, and the stable*.list files to appear, unless > > they're already there,

[ansible-project] How to handle lists of files and avoid unnecessary changes

2017-11-08 Thread Marc Haber
file names regardless of which distribution is used (I like to be able to look in the directory to see what I'll find inside the files). Greetings Marc -- ----- Marc Haber | "I don't trust Computers. They | Mailadre

Re: [ansible-project] Errativ behavior when looping over a fileglob

2017-11-08 Thread Marc Haber
Hi Kai, thanks for the nudge. I was able to solve the issue. On Tue, Nov 07, 2017 at 07:35:06PM +0100, Kai Stian Olstad wrote: > On 07. nov. 2017 19:21, Marc Haber wrote: > > - name: remove extra files that may be on the systems > >file: > > path: "{{ item

[ansible-project] Errativ behavior when looping over a fileglob

2017-11-07 Thread Marc Haber
fileglob with with_items in the tasks file, it removes the files that are explicitly given, but of course doesn't glob, so the /etc/apt/sources.lists.d/zda-*.list doesn't work. What am I doing wrong? Greetings Marc --