Thanks both.
Using Tower, unfortunately, is not something that I can jump over to.
Though, i might just give it a read. For now, I have just gone back to
calling 2 separate playbooks individually.
Thanks
On Monday, 22 March 2021 at 15:32:25 UTC Brian Coca wrote:
> Look at AWX/Tower workflows.
Thanks
On Sunday, 21 March 2021 at 11:50:11 UTC danish09 wrote:
> Hi,
>
> My goal is to implement 2 separate playbooks from the root main.yml,
> however, I would like to execute the 2nd playbook only when the 1st gives a
> return code of 0.
>
> ---
> - hosts: a
Hi,
My goal is to implement 2 separate playbooks from the root main.yml,
however, I would like to execute the 2nd playbook only when the 1st gives a
return code of 0.
---
- hosts: all
- import_playbook: sftp.yml
- import_playbook: reboot.yml
---
- hosts: sftp01
tasks:
- name: create
19:06:58 UTC dick@geant.org wrote:
> Did you look at
>
> https://docs.ansible.com/ansible/latest/collections/ansible/builtin/getent_module.html
>
> ?
>
> On Fri, 5 Mar 2021 at 18:20, danish09 wrote:
>
>> Hi,
>>
>> Using ansible 2.4.0 on contr
Thanks everyone, got this working.
*awk -v LIMIT=$UGIDLIMIT -F':' '($3>=LIMIT) && ($3!=65534) && ($6=="/sftp")'
/etc/passwd > /home/
/migrate/passwd.mig*
On Saturday, 6 March 2021 at 12:18:16 UTC danish09 wrote:
> Hi,
>
Hi,
ansible 2.4.0
remote environment: ubuntu 14.04
host/controller: Ubuntu 16.04.7 LTS
I have a task to extract some usernames from the passwd file
*- name: extract usernames from password file *
* shell: "awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534) &&
($6="/sftp")' /etc/passwd > /
Hi,
Using ansible 2.4.0 on controller.
Remote is an ubuntu 14.04 LTS.
Python 2.7
I am trying to cat through passwd file, awk the first column, register that
into a variable and then create a compressed archive of a remote dir based
on that username.
I have read about using lookups, simple sh
brilliant. thank you very much. finally seem to be making sense of regular
expressions some what but still have a long way to go
Thanks again.
On Thursday, 13 December 2018 17:24:29 UTC, Dick Visser wrote:
>
> On Thu, 13 Dec 2018 at 17:42, danish09 > wrote:
> >
> >
p conf file and search and replace regex
> replace:
> path: /etc/nginx/sites-available/cruk-eb
> regexp: '(privkey|cert)\.cruk\.org\.(key\.pem|crt)'
> replace: '\g<1>3.pem'
> backup: yes
>
> Dick
>
Hey there,
I am using ansible 2.6.4. In on the projects I was working on, I had to
search for 2 different words in the same file and replace them as
necessary. Used *replace* module 2 times for this. Below is the playbook
that I have used.
- name: backup conf file and search and replace re
Thank you very much. Your suggestion is working perfect.
On Tuesday, 20 March 2018 15:27:33 UTC, danish09 wrote:
>
> Thank you for responding to me. I am stuck now at some silly mistake of
> mine in that playbook. I will come back to your suggestion as soon as I
> correct the error
When I am downloading a tar.gz file and unarchiving it using the unarchive
module, ansible fails with "Failed to find handler for
\"/usr/share/openjdk-9.0.4_linux-x64_bin.tar.gz\". Make sure the required
command to extract the file is installed. Commands \"gtar\" and \"tar\" not
found. Comman
Hi,
Please provide your suggestions. Kindly help me on what mistake I am doing,
ansible --version
ansible 2.4.3.0
config file = None
configured module search path =
[u'/home/xx/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
ansible python module location =
/usr/lo
Thank you for responding to me. I am stuck now at some silly mistake of
mine in that playbook. I will come back to your suggestion as soon as I
correct the error.
Thanks for your advise again.
On Tuesday, 20 March 2018 13:31:36 UTC, Brian Coca wrote:
>
> as you have it there, the `environment`
Hi,
I know the solution to this topic has been posted many times and I have
tried searching through google and other forums including the ansible docs
but unfortunately, nothing seems to be working for me. Please provide your
feedback and help me with the solution. Also please let me know if yo
15 matches
Mail list logo