[ansible-project] Re: Run the same handler only once through many playbooks notify

2021-03-09 Thread 'klingac' via Ansible Project
Hi, try to use "listen" in handlers definitions, e.g.: ```yaml handlers: - name: Restart apache ansible.builtin.service: name: apache state: restarted listen: "restart web services" tasks: - name: Restart everything ansible.builtin.command: echo "this task will restart

Re: [ansible-project] Unable to get correct disk space utilized percentage using Ansible API

2020-03-25 Thread klingac
It could be this kind of problem http://linuxshellaccount.blogspot.com/2008/12/why-du-and-df-display-different-values.html `df` reads only and trusts completely to superblocks. Another reason could be, that you can have other running process that can keep a deleted file open. Do you have

Re: [ansible-project] Re: how to run one role out of a playbook host by host in serial one instead of linear or free

2020-03-16 Thread klingac
You can use throttle on block, hovewer it will not work as you need https://github.com/ansible/ansible/issues/64659#issuecomment-564604298 Dne neděle 15. března 2020 16:57:44 UTC+1 Kai Stian Olstad napsal(a): > > On 14.03.2020 14:06, Jelle de Jong wrote: > > I would like to request the feature

[ansible-project] Re: Unable to access variables from host_vars dir however can access the same variables when specified in roles/defaults/mail.yml

2020-03-06 Thread klingac
Are you using `--limit` param for ansible-playbook? Dne středa 4. března 2020 14:49:44 UTC+1 Vishal Bobade napsal(a): > > > TASK [ansible-manage-lvm : manage_lvm | creating new LVM volume group(s)] > ** > [0;31mfatal: [grafana]: FAILED! => {"msg": "'config_lv_name' is undefined"} > [0m >