[ansible-project] Installing Office 2016 through Ansible?

2019-03-22 Thread Tuyen Nguyen
Hi I created a playbook to install Office 2016 which I think should work. I had it run setup.exe /adminfile -- the unattended.msp file I created by running setup.exe /setup and setting it to install with Display level: None, which has Suppress Modal selected only. Each time I try running

Re: [ansible-project] Ansible Galaxy - requirements.yml and a single github repo with multiple roles

2019-03-22 Thread Seth Daemen
Ok then I need mazer for multiple roles repositories. Buy the requirements.yml in roles directory use automtically ansible-galaxy command. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] Ansible Galaxy - requirements.yml and a single github repo with multiple roles

2019-03-22 Thread Jonathan Lozada De La Matta
yes, look at https://galaxy.ansible.com/docs/using/installing.html and https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#directory-layout On Fri, Mar 22, 2019 at 5:32 PM Seth Daemen wrote: > Did you find a solution forum this? > Is IT posible tot user one git repo

[ansible-project] Ansible Galaxy - requirements.yml and a single github repo with multiple roles

2019-03-22 Thread Seth Daemen
Did you find a solution forum this? Is IT posible tot user one git repo for multiple roles and use the ansible galaxy command OR requirements.yml -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] aws_s3 module fails, says Boto3 is missing when it is not - bug?

2019-03-22 Thread gigit1000
This Play installs python3, pip3, boto3 and botocore, and trys to use aws_s3 module to download a file: TASK [run yum update -y using yum module] *** ok: [ip-10-200-2-137.us-west-2.compute.internal] TASK

Re: [ansible-project] debug statement not working

2019-03-22 Thread 'Felix Fontein' via Ansible Project
Hi, > I cant figure out why > > --- > - hosts: misc > become: false > gather_facts: yes > tasks: > - name: get package version > shell: rpm -q {{ item }} > with_items: > - "package1" > - "package2" > - "package3" > register: pkg > > -

Re: [ansible-project] debug statement not working

2019-03-22 Thread Matt Martz
When you do a loop on a task the registered variable structure changes. Try just debugging `pkg` to see the structure. You will effectively have `pkg.results` On Fri, Mar 22, 2019 at 2:51 PM Jerry Seven wrote: > I cant figure out why > > --- > - hosts: misc > become: false > gather_facts:

Re: [ansible-project] debug statement not working

2019-03-22 Thread Jonathan Lozada De La Matta
use quotes inside the shell "rpm -q {{ item }}" also you can list for for rpms using the yum module. On Fri, Mar 22, 2019 at 3:51 PM Jerry Seven wrote: > I cant figure out why > > --- > - hosts: misc > become: false > gather_facts: yes > tasks: > - name: get package version >

[ansible-project] debug statement not working

2019-03-22 Thread Jerry Seven
I cant figure out why --- - hosts: misc become: false gather_facts: yes tasks: - name: get package version shell: rpm -q {{ item }} with_items: - "package1" - "package2" - "package3" register: pkg - debug: msg: "{{ pkg.stdout }}"

Re: [ansible-project] Ansible Tower SAML Authentication

2019-03-22 Thread Jonathan Lozada De La Matta
Chanaka, please reach support for this. On Fri, Mar 22, 2019 at 2:48 PM Chanaka Samarajeewa wrote: > Hello, > > I configured Tower to authenticate with OKTA via SAML . When I go to > Tower's login page and click "Sign in with SAML" it functions correctly and > takes me to Okta to sign in, then

Re: [ansible-project] Re: replace module regexp with newline character

2019-03-22 Thread John Harmon
On Friday, March 22, 2019 at 11:23:15 AM UTC-6, John Harmon wrote: > > You are right I switched to lineinfile sometime between yesterday and > today. I switched back to replace due to your success (and I prefer to use > it as I believe it will replace all found instances). > > Seems to

[ansible-project] Ansible Tower SAML Authentication

2019-03-22 Thread Chanaka Samarajeewa
Hello, I configured Tower to authenticate with OKTA via SAML . When I go to Tower's login page and click "Sign in with SAML" it functions correctly and takes me to Okta to sign in, then allows me into Tower after authenticating. However, If I initiate the process from OKTA by clicking the

Re: [ansible-project] command scp in ansible

2019-03-22 Thread Sebastian Meyer
Hi, On 22.03.19 18:28, Brian Coca wrote: > The copy module uses the transfer mechanism from the 'connection > plugin', which, if using ssh CAN be scp, but it also tries sftp and dd > by default, but you can control this via configuration (see scp_if_ssh > setting). I see that setting, but I'm

Re: [ansible-project] Re: How to say “When” something is finished installing?

2019-03-22 Thread gigit1000
Thank you – this worked and it’s a lot cleaner then the way I was doing it - I knew about the yum module but because it did not have any return values I was afraid that it just kicked off the update and moved on - I'm glad that's not the case On Friday, March 22, 2019 at 12:32:36 AM UTC-7,

Re: [ansible-project] command scp in ansible

2019-03-22 Thread Brian Coca
The copy module uses the transfer mechanism from the 'connection plugin', which, if using ssh CAN be scp, but it also tries sftp and dd by default, but you can control this via configuration (see scp_if_ssh setting). -- -- Brian Coca -- You received this message because you are

Re: [ansible-project] Re: replace module regexp with newline character

2019-03-22 Thread John Harmon
You are right I switched to lineinfile sometime between yesterday and today. I switched back to replace due to your success (and I prefer to use it as I believe it will replace all found instances). Seems to be working now, however, one follow-up question regarding backrefs. I thought

Re: [ansible-project] Re: Ansible synchronize database sql

2019-03-22 Thread Keif Gwinn
Not really an ansible question, but you can always execute powershell commands a windows host with access to the database server and this command

Re: [ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread Kai Stian Olstad
On 22.03.2019 17:11, James Gibson wrote: > Yes that worked, but for the client I am working with, I am unable to > change the validation. How would I define it so that test_out.test would > work? You can't since debug doesn't return test. -- Kai Stian Olstad -- You received this message

Re: [ansible-project] Re: replace module regexp with newline character

2019-03-22 Thread Kai Stian Olstad
On 22.03.2019 17:47, John Harmon wrote: > > Thx Kai. > > I tried it, and the regexp test shows that the regexp is good, but it > doesn't replace the line. It just says ok, and continues on. Here is my > slightly modified variant also doing the same thing (or to be more > specific, not doing

Re: [ansible-project] Re: replace module regexp with newline character

2019-03-22 Thread John Harmon
Thx Kai. I tried it, and the regexp test shows that the regexp is good, but it doesn't replace the line. It just says ok, and continues on. Here is my slightly modified variant also doing the same thing (or to be more specific, not doing anything): regexp:

Re: [ansible-project] Re: replace module regexp with newline character

2019-03-22 Thread Kai Stian Olstad
On 22.03.2019 16:11, John Harmon wrote: > >> It will be easier to help if you could show what do have in the file and >> what is should be after replace. >> >> >> -- >> Kai Stian Olstad >> > > I didn't post it so as to not overburden everyone with my issues; however, Regexp is not easy without

[ansible-project] Re: Contributor interactions interpreted as hostile

2019-03-22 Thread mcronenworth
On Friday, March 22, 2019 at 11:33:17 AM UTC-5, Brian Coca wrote: > > > I hope this clears things up, > > > It doesn't. Your e-mail response is nearly as bland and unfriendly as sivels. Thanks, Michael -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] Re: Ansible synchronize database sql

2019-03-22 Thread ryad9200000
New question, Can i execute line command SQL in ansible ? How can i do it please ?? Thanks Regards, Le vendredi 22 mars 2019 16:48:13 UTC+1, ryad9...@gmail.com a écrit : > > Hi all, > > *"* Data synchronization can be resumed by right-clicking on the database > and choosing "Resume data

[ansible-project] Re: Contributor interactions interpreted as hostile

2019-03-22 Thread Brian Coca
Just a few things I would like to clarify: - bugfixes change behaviour, always, otherwise they would not be 'fixing', that you rely on a buggy behaviour is a different issue than 'is this really a bug' - before responding to you Sivel check around with other committers to make sure he was not

Re: [ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread James Gibson
Yes that worked, but for the client I am working with, I am unable to change the validation. How would I define it so that test_out.test would work? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread Qasim Sarfraz
"test_out": { "changed": false, "failed": false, "msg": "hello" } there is no key named test here. You need to use 'test_out.msg' above. On Fri, Mar 22, 2019 at 3:57 PM James Gibson wrote: > Thanks Syed. I added a validation step and that is failing. > > Updated

[ansible-project] Stable release behavior changes

2019-03-22 Thread mcronenworth
Are bug fixes vetted before they are introduced in stable releases? A bug fix[1] on get_url changed its basic functionality when run under check mode. The broken behavior has been in Ansible for years, but a stable release made it work correctly for the first time and broke[2] existing code

[ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread James Gibson
Thanks Syed. I added a validation step and that is failing. Updated playbook --- --- 2 - name: Test playbook 3 hosts: localhost 4 connection: local 5 vars: 6 test: hello 7 8 tasks: 9 - name: test var 10debug: 11

[ansible-project] Contributor interactions interpreted as hostile

2019-03-22 Thread mcronenworth
Closing and locking a discussion while holding a self-righteous attitude gave me an extremely sour taste in my mouth. I raised a concern[1] about a bug fix that changed behavior in a stable release when that behavior has been common place for years. Instead of wishing to discuss the thought

[ansible-project] Ansible synchronize database sql

2019-03-22 Thread ryad9200000
Hi all, *"* Data synchronization can be resumed by right-clicking on the database and choosing "Resume data movement ...". *"* [image: Resume_data_movement_of_sql_server.png] I want know if in ansible its possible to realize the same thing as on the image. That is to resynchronize a

Re: [ansible-project] command scp in ansible

2019-03-22 Thread ryad9200000
Hi Sebastian, Ok. Thanks for your answer Regards, Le vendredi 22 mars 2019 14:36:21 UTC+1, Sebastian Meyer a écrit : > > On 22.03.19 13:47, ryad9...@gmail.com wrote: > > Hi all, > > > > I must use scp in ansible, i know module synchronize, copy but i d'ont > find > > the module scp. > >

[ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread syed . qasim . sarfraz
Try this it worked for me, A play takes a list of tasks so each tasks should start with dash `-`: --- - name: Test playbook hosts: localhost connection: local vars: test: hello tasks: - name: test var debug: msg: "{{ test }}" register: test_out

Re: [ansible-project] Re: replace module regexp with newline character

2019-03-22 Thread John Harmon
On Thursday, March 21, 2019 at 2:46:50 PM UTC-6, Kai Stian Olstad wrote: > > On 21.03.2019 20:51, John Harmon wrote: > > > > Thx all. Those helped. I now get it to replace, but it replaces my > string > > and not just my backref. Not sure what I am doing wrong. I think that > is > >

[ansible-project] Ansible - Register variable in not defined

2019-03-22 Thread James Gibson
I am trying to figure out why my variable is not defined and have not been able to find any solutions online. Can anyone help? test.yml --- - name: Test playbook hosts: localhost connection: local vars: test: hello tasks: - name: test var debug: msg: "{{

Re: [ansible-project] command scp in ansible

2019-03-22 Thread Sebastian Meyer
On 22.03.19 13:47, ryad9200...@gmail.com wrote: > Hi all, > > I must use scp in ansible, i know module synchronize, copy but i d'ont find > the module scp. > There is junos_scp but i d'ont know how he works :/ > > Is there a way to transfer files or directories by scp as the command linux >

[ansible-project] Re: sros network modules in ansible 2.7.0

2019-03-22 Thread Stan Kozlov
I has similar issue with 7750 TiMOS-C-14.0.R5 and Ansible 2.7.0 Upgrade up to 2.7.5 has fixed the issue Cheers On Saturday, January 12, 2019 at 7:20:26 PM UTC+11, Ganesh Nalawade wrote: > > > The issue is fixed by PR #49174 and the fix is available in Ansible > version 2.7.5 > Please retest

[ansible-project] command scp in ansible

2019-03-22 Thread ryad9200000
Hi all, I must use scp in ansible, i know module synchronize, copy but i d'ont find the module scp. There is junos_scp but i d'ont know how he works :/ Is there a way to transfer files or directories by scp as the command linux scp -rp Thanks community ansible !! ;) Regards, -- You

Re: [ansible-project] Re: Using defaults for Ansible user module for for "home", "group" and "groups"

2019-03-22 Thread Sebastian Meyer
On 22.03.19 12:26, Suhail Choudhury wrote: > Sorry I meant I've tried something like: > > group: "{{ (item.group) | default('[]') }}" > Try default(omit), that'd just not set the parameter if item.group isn't defined. - Sebastian > but no joy as Ansible throws the error that "Group "" does

[ansible-project] Re: Using defaults for Ansible user module for for "home", "group" and "groups"

2019-03-22 Thread Suhail Choudhury
Sorry I meant I've tried something like: group: "{{ (item.group) | default('[]') }}" but no joy as Ansible throws the error that "Group "" does not exist". If I try group: "{{item.group if item.group is defined else item.username }}" then Ansible fails with the group does not exist. Whereas

Re: [ansible-project] How do I use snow_record and snow_record find in Ansible? Or should I do something different?

2019-03-22 Thread Beau Gauthreaux
I do not have ADFS in between. Thanks, On Wednesday, March 20, 2019 at 4:33:15 AM UTC-4, Ankit wrote: > > Do you have ADFS in between? This module can't handle ADFS. > > *Regards,* > *Ankit* > > > On Wed, Mar 20, 2019 at 1:02 AM Beau Gauthreaux > wrote: > >> I'm trying to gather change record

[ansible-project] DEFAULT_REMOTE_TMP not working

2019-03-22 Thread syed . qasim . sarfraz
Hi, I want to fetch the custom controller remote directory and create it if required, I used the remote_tmp in my ansible.cfg to set a custom value. Previously I was using DEFAULT_REMOTE_TMP to get the custom value but I see a lot has changed after 2.4.0. Is there now a new way to do it? I

Re: [ansible-project] Re: In ansible how do cp -rp

2019-03-22 Thread ryad9200000
Hi, Ok thanks, i will try synchronize module in ansible. Thank you, Regards, Le vendredi 22 mars 2019 09:55:31 UTC+1, Dick Visser a écrit : > > If your goal is to have two equal directories, then the synchronize > module would make sense. > > On Fri, 22 Mar 2019 at 09:25, > wrote: > > > >

Re: [ansible-project] Re: In ansible how do cp -rp

2019-03-22 Thread Dick Visser
If your goal is to have two equal directories, then the synchronize module would make sense. On Fri, 22 Mar 2019 at 09:25, wrote: > > Hi Eric, > > Yes but the subject is -p since I'm mainly interested in keeping all the > characteristics of the file ... > In addition, I know that there is shell

[ansible-project] Re: In ansible how do cp -rp

2019-03-22 Thread ryad9200000
Hi Eric, Yes but the subject is -p since I'm mainly interested in keeping all the characteristics of the file ... In addition, I know that there is shell and command in ansible but I want a "syntax" ansible. The objective with ansible it is to use its modules (example: service, get_url, etc

Re: [ansible-project] Re: Need help with how to grab public ip and use it for later part in playbook

2019-03-22 Thread Sebastian Meyer
Hi, in this case verify that - debug: var: ec2 works first. Then try: - debug: var: ec2.instances Afterwards: - debug: var: ec2.instances.0 So basically you try to build the path to the value you want. If one fails, please post the output of the last succeeding debug. -

Re: [ansible-project] Re: How to say “When” something is finished installing?

2019-03-22 Thread Sudheer Satyanarayana
On 22/03/19 5:34 AM, gigit1...@gmail.com wrote: The following playbook worked for me, but I just started with Ansible and I'm wondering if I went about this wrong? I feel like I may have missed an easier way to say: do something only after a package has finished installing ... tasks: - name:

Re: [ansible-project] user_module and ssh key

2019-03-22 Thread Sebastian Meyer
On 22.03.19 07:51, Alexander B. wrote:> Hello. > There are two hosts. On first I create a user and generate SSH keys. Now I > need to transfer private key to second host to connect using it to first > host without creating a user on second. I haven't found an output of > parameter ssh_key as

Re: [ansible-project] Unable to negotiate with 10.192.1.5 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc

2019-03-22 Thread Dick Visser
On Fri, 22 Mar 2019 at 03:30, Jonathan Lozada De La Matta wrote: > > you probably need to do this on your ~/.ssh/config > > Host 192.168.1.1 #the IP of the device > KexAlgorithms +diffie-hellman-group1-sha1 Alternatively, you can configure it in your ansible inventory: 10.192.21.5

[ansible-project] user_module and ssh key

2019-03-22 Thread Alexander B.
Hello. There are two hosts. On first I create a user and generate SSH keys. Now I need to transfer private key to second host to connect using it to first host without creating a user on second. I haven't found an output of parameter ssh_key as analogg to ssh_public_key in module user. In