[ansible-project] Re: Run playbook against multiple hosts with different variables

2022-03-04 Thread Dan Linder
Do you have an inventory file setup that has "server01" and "server02" setup in group(s)? For instance, instead of running the two examples above, setup an inventory file with both servers listed: # inventory.ini server01 server02 Then run your playbook like this: ansible-playbook playbooks/ne

Re: [ansible-project] The name of a node is not resolved after it was resolved ?

2022-03-04 Thread Rajthecomputerguy
you can try in separate yaml file *** *mediawiki_config.yaml* - name: "mediawiki configuration" become: yes become_user: "apache" args: creates: "{{mediawiki_directory}}/LocalS

Re: [ansible-project] Unable to start kibana from ansible playbook

2022-03-04 Thread Dhiraj Harshe
Have you tried below command in playbook ? tasks: - shell: ps aux | grep node/bin/node register: ps_cmd - name: Show captured processes debug: var: ps_cmd.stdout : On Thu, Mar 3, 2022 at 11:47 AM dulhaver via Ansible Project wrote: > showing your TASK may be

[ansible-project] Re: Unable to start kibana from ansible playbook

2022-03-04 Thread dmc...@gmail.com
Hi, For my ELK role I created a service each for elasticsearch, kibana and logstash. It just makes it easier to start and stop the ELK stack components and you can enable them at boot. You can see the role I created here with all the code: https://github.com/dmccuk/ansible_ELK/blob/master/roles

Re: [ansible-project] ansible-galaxy vs. ansible-galaxy collections

2022-03-04 Thread John Petro
Maybe you have a formatting issue with your requirements.yml. Mine looks like this, and it worked no problem. collections: - name: theforeman.foreman On Fri, Mar 4, 2022 at 10:36 AM Hiero-nymo wrote: > Hi everyone, > > On the ansible documentation, I found the collection "the foreman.forem

Re: [ansible-project] ansible-galaxy vs. ansible-galaxy collections

2022-03-04 Thread Dick Visser
"works for me" $ cat r.yml --- collections: - theforeman.foreman $ ANSIBLE_COLLECTIONS_PATH=$(python -c "import site; print(site.getsitepackages()[0])") ansible-galaxy collection install -r r.yml Starting galaxy collection install process Process install dependency map Starting collection install

[ansible-project] ansible-galaxy vs. ansible-galaxy collections

2022-03-04 Thread Hiero-nymo
Hi everyone, On the ansible documentation, I found the collection "the foreman.foreman" here's the link: theforeman.foreman This collection can manually be installed like: ansible-galaxy collection install the f

Re: [ansible-project] The name of a node is not resolved after it was resolved ?

2022-03-04 Thread Arc Tangente
Hi, Thanks for your help. I changed '*with_items*' for '*loop*', as proposed. *It does not resolve the issue*. By the way 'with_items' works well in another task in another role. *About the indentation*, it is *because of the email formating*… (sorry) 'become, become_user, args, command, run_on

Re: Message privé sur le sujet suivant : [ansible-project] The name of a node is not resolved after it was resolved ?

2022-03-04 Thread dulhaver via Ansible Project
sorry to hear the loopdid not help. Generally I believe it is better to reply to the group and not to the correspondent personally (probably not even intended) On 04.03.22 09:44, Arc Tangente wrote: Hi, Thanks for your help. I changed '*with_items*' for '*loop*', as proposed. _It does not