Re: [ansible-project] How to resolve dependencies of locally downloaded packages, when package A depends on B.

2019-10-23 Thread john 517501
Thanks.. Can i resolve this issue with any mechanism using tags or roles (meta) On Wednesday, October 23, 2019 at 3:04:26 PM UTC-6, Kai Stian Olstad wrote: > > On 23.10.2019 21:40, john 517501 wrote: > > I have simple playbook where trying to install the Debian packages > > downloaded locally

[ansible-project] New Ansible release 2.9.0rc5

2019-10-23 Thread Matt Davis
Hi all- we're happy to announce that Ansible 2.9.0rc5 is now available! This is anticipated as the final release candidate before Ansible 2.9.0 is generally available within the next week or so. How do you get it? -- $ pip install ansible==2.9.0rc5 --user The tar.gz of the

Re: [ansible-project] How to resolve dependencies of locally downloaded packages, when package A depends on B.

2019-10-23 Thread john 517501
Thanks for your response. I tried installing correct order(This would be more of like manual), what if there are many dependency packages for specific Debian package. I am looking for dynamic solution to resolve this issue. On Wednesday, October 23, 2019 at 2:44:46 PM UTC-6, Dick Visser wrote:

[ansible-project] Re: How to resolve dependencies of locally downloaded packages, when package A depends on B.

2019-10-23 Thread john 517501
I tried installing correct order(This would be more of like manual), what if there are many dependency packages for specific Debian package. I am looking for dynamic solution to resolve this issue. On Wednesday, October 23, 2019 at 1:40:50 PM UTC-6, john 517501 wrote: > > I have simple playbook

Re: [ansible-project] How to resolve dependencies of locally downloaded packages, when package A depends on B.

2019-10-23 Thread Kai Stian Olstad
On 23.10.2019 21:40, john 517501 wrote: I have simple playbook where trying to install the Debian packages downloaded locally in my server. This playbook runs on localhost and install the Debian packages in the same system. But this playbook gives an error *"Dependency is not satisfiable* for

Re: [ansible-project] How to resolve dependencies of locally downloaded packages, when package A depends on B.

2019-10-23 Thread Dick Visser
Hii How about just installing the deb files in the correct order? On Wed, 23 Oct 2019 at 21:41, john 517501 wrote: > > I have simple playbook where trying to install the Debian packages downloaded > locally in my server. This playbook runs on localhost and install the Debian > packages in

[ansible-project] How to resolve dependencies of locally downloaded packages, when package A depends on B.

2019-10-23 Thread john 517501
I have simple playbook where trying to install the Debian packages downloaded locally in my server. This playbook runs on localhost and install the Debian packages in the same system. But this playbook gives an error *"Dependency is not satisfiable* for some of the packages even tough the

Re: [ansible-project] replace line in multiple files using lineinfile could anyone please help me.

2019-10-23 Thread SARDARNI NK
Thank you, J It worked for me. I have updated the raw: find /mydata/myserver/ConServer1 -type f -name "*.yml" . Listing all the files and replacing them in multiple files. Thanks, Nav On Tuesday, October 22, 2019 at 10:01:46 PM UTC-4, J wrote: > > I found this if it works for you. > > ---

Re: [ansible-project] Read timeout when using WinRM to apply Windows patches on Azure

2019-10-23 Thread Angel Rengifo Cancino
Thank you so much buddy. Actually, I'm working with Standard B2ms VMs (2 vCPUs, 8 GB RAM), but this time I'll try with a larger machine. What seemed strange is the fact that CPU utilization was really low (almost 0%) during several minutes before Ansible failure appears. I got this info from

[ansible-project] Read timeout when using WinRM to apply Windows patches on Azure

2019-10-23 Thread 'J Hawkesworth' via Ansible Project
I have had issues with single core machines when windows updates include an upgrade to the dot net version. What happens is ngen recompiles all the dot net code it can find and ties up an entire core until has finished recompiling, which leaves no cpu time for winrm. Dual core boxes aren't as

Re: [ansible-project] replace line in multiple files using lineinfile could anyone please help me.

2019-10-23 Thread SARDARNI NK
Thank you, J In (/mydata/myserver/ConServer1 ) i have many files which are different extensions (yml,txt,j2,) how do use (/mydata/myserver/ConServer1 -type f -name "files*") "files*" do i need to provide same "files*" i don't understand this ? do i need to provide any file extensions or

[ansible-project] Read timeout when using WinRM to apply Windows patches on Azure

2019-10-23 Thread Angel Rengifo Cancino
Hello guys: I'm currently working with Ansible 2.8.5 to apply Windows patches through WinRM connections. This is a portion of my code: - name: Instalar actualizaciones 1 win_updates: category_names: "{{ windows_update_categories }}" register: updates vars:

[ansible-project] Failed to connect to the host via ssh: ssh: connect to host

2019-10-23 Thread 'Frazer Grant' via Ansible Project
Hi, I feel a little bit uncomfortable posting this, as it seems it should be a simple fix, but I cannot seem to find an answer. Ive just installed Ansible 2.8.5 into a Vagrant VM on my laptop and from that I can *gcloud compute ssh* into my VMs, centos 7 and RedHat Enterprise 7, in Google

Re: [ansible-project] Reboot wait for port to come available

2019-10-23 Thread Kai Stian Olstad
On 23.10.2019 15:52, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: Doesn't this use the ansible server running the playbook to check if the port is open? No, since host is server2 the wait_for module will run on that host. You would need connection: local, delegate_to: localhost

Re: [ansible-project] Reboot wait for port to come available

2019-10-23 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Doesn't this use the ansible server running the playbook to check if the port is open? On Tue, Oct 22, 2019 at 5:07 PM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 23.10.2019 00:42, 'Chris Bidwell - NOAA Federal' via Ansible Project > wrote: > > Hi all, > > > > So I know how

[ansible-project] Re: Can I use github_releases with a enterprise github?

2019-10-23 Thread Rodrigo Rapozo
I found this issues https://github.com/ansible/ansible/issues/59560 https://github.com/ansible/ansible/pull/59564 Someone know the status of it? Em quinta-feira, 10 de outubro de 2019 11:50:04 UTC+1, Rodrigo Rapozo escreveu: > > Hello, > > I'm trying to use github_release module to fetch a

Re: [ansible-project] Ansible Play book for the Windows exe file

2019-10-23 Thread Vikrant
Makes sense, thanks Jon for the help. Excuse the typo, sent from smartphone. On Wed, Oct 23, 2019, 5:17 PM 'J Hawkesworth' via Ansible Project < ansible-project@googlegroups.com> wrote: > If you store all the settings you need in your ansible playbook this is > not a problem. > > I like to have

Re: [ansible-project] Facing problem while using Ansible for Open edX installation.

2019-10-23 Thread Waleed Khan
Thank you Mr. Dick for reply. On Wed, Oct 23, 2019 at 11:33 AM Dick Visser wrote: > Hi > > This isn't an issue with ansible itself, but rather with the specific > ansible code provided on > >

Re: [ansible-project] Ansible Play book for the Windows exe file

2019-10-23 Thread 'J Hawkesworth' via Ansible Project
If you store all the settings you need in your ansible playbook this is not a problem. I like to have ansible be fully in charge of the configuration of applications. It makes it easier to know exactly what settings are applied if they are all in ansible and you don't have to check each

[ansible-project] Re: Ansible on Windows Environment

2019-10-23 Thread Harini K
Thanks Jon for the Response! Let me explain it in a detailed way. we would be performing the below Tasks using Ansible and since this is WIndows Environment, we are using the Powershell Scripts. 1. Create VM ( Working as Expected) 2. Launch the Application (Here, the application is launched as

[ansible-project] azure_rm_devtestlabvirtualmachine – Manage Azure DevTest Lab Virtual Machine instance - ssh_key attribute

2019-10-23 Thread Philip Lewis
Hi, I have a question on the above module. I want to use ssh key authentication as opposed to password authentication on the vm that is created in the lab but if I exclude the password property and include a key for the ssh_key property I get the following error: Missing required property

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Vladimir Botka
Hi Stephen, On Wed, 23 Oct 2019 01:51:26 -0700 (PDT) Stephen Feyrer wrote: > - name: my-script > script: My-Script.ps1 -svc_password '{{ vault_password }}' > > and > - name: my-script > script: My-Script.ps1 -svc_password "{{ vault_password }}" Quoting from *Gotchas*: "If

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Stephen Feyrer
Hi Vlado, You are right, it is the Powershell parameter interpretation. I have previously tried quoting in the Ansible playbook like: - name: my-script script: My-Script.ps1 -svc_password '{{ vault_password }}' and - name: my-script script: My-Script.ps1 -svc_password "{{

Re: [ansible-project] Facing problem while using Ansible for Open edX installation.

2019-10-23 Thread Dick Visser
Hi This isn't an issue with ansible itself, but rather with the specific ansible code provided on https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+Ubuntu+16.04+64+bit+Installation. Please refer to that website for help. Regardless of where you ask for help, you

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Vladimir Botka
On Mon, 21 Oct 2019 09:34:22 -0700 (PDT) Stephen Feyrer wrote: > vault_password: abc(123 > --- > tasks: > - name: my-script >script: My-Script.ps1 -secret {{ vault_password }} > > The error which is reported is quite long though the operative part looks > like: > (Missing closing ')' in

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Vladimir Botka
Hi Stephen, > > > vault_password: abc(123 > > > tasks: > > > - name: my-script > > >script: My-Script.ps1 -secret {{ vault_password }} > > > > > > (Missing closing ')' in expression.:String) [] > > > > Use "quote" filter > >

[ansible-project] Facing problem while using Ansible for Open edX installation.

2019-10-23 Thread Waleed Khan
I am trying to install ironwood.master using native installation method by following this link: https://openedx.atlassian.net/wiki/spaces/a/pages/146440579/Native+Open+edX+Ubuntu+16.04+64+bit+Installation

Re: [ansible-project] Installing multiple roles from the same repo (Ansible Galaxy)

2019-10-23 Thread Dick Visser
On Tue, 22 Oct 2019 at 21:09, Ry wrote: > > Hi everyone, > > I'm having difficulties figuring out how I can install two different roles > from the same project. Below is the project tree, > Project_Name > ansible_role > role1 > role2 > > The different between these two roles are their

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Stephen Feyrer
Hi Vlado, Apologies for the delayed reply. Unfortunately, that hasn't worked. In the documentation that you linked to, that syntax is described in connection with the shell operator rather than the script. I tried this: - name: my-script script: My-Script.ps1 -secret {{

[ansible-project] Ansible on Windows Environment

2019-10-23 Thread 'J Hawkesworth' via Ansible Project
Hi It is not clear what you are trying to do. By default ansible connects to Windows as batch login type, not interactive user, so usually there is no graphical user interface available to ansible. You can get an interactive user login by using the Become feature of ansible, but ansible is

Re: [ansible-project] Ansible Play book for the Windows exe file

2019-10-23 Thread Vikrant
Thanks again Jon, working fine but --Option syntax is not retaining the existing values. regards Vikrant On Tue, Oct 22, 2019 at 5:01 PM 'J Hawkesworth' via Ansible Project < ansible-project@googlegroups.com> wrote: > You are using ++Option. I think it will do what you want if you change to >

[ansible-project] How to replace a line with special characters to another line with special characters using variables?

2019-10-23 Thread Ankit
Hello All, I am trying to update a configuration file where there are existing lines (rules) with special characters (:*[]/\. etc.). In normal scenario, i can always manually escape all the characters but in this particular case, i have got pre-populated values in two variables: *var1