Re: [ansible-project] Need to understand how I can write a ansible role so that it compares input / output value.

2021-12-28 Thread Mauricio Tavares
var On Mon, Dec 27, 2021 at 11:58 PM Marian Saldhana wrote: > > Hi All, > > This is my code: > > --- > # tasks file for uname > > - name: Kernel version number > register: uname_a > command: "uname -a" > > - debug: > var: uname_a.stdout_lines > > +++ > >

Re: [ansible-project] Deploy a Firewall in Ansible

2021-12-22 Thread Mauricio Tavares
On Wed, Dec 22, 2021 at 7:56 AM Nico Kadel-Garcia wrote: > > On Wed, Dec 22, 2021 at 4:44 AM Stefan Hornburg (Racke) > wrote: > > > > On 21/12/2021 22:21, Liliana Achig wrote: > > > Excuse me, I'm new to ansible. I don't know if you can help me, how can I > > > check that the port of the

[ansible-project] Template expansion

2021-10-15 Thread Mauricio Tavares
When you use the template module, where does it do all the jinjaness (variable expansion, loop, etc): in the host you are running ansible from (server?) or the one you are applying it to (client)? -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Juniper rule-sets

2021-05-31 Thread Mauricio Tavares
For those who are using the juniper playbooks, is it me or the only way to create/edit rule-sets in ansible is to, for instance, have a template of the relevant session (or the entire config) and replace it as needed? -- You received this message because you are subscribed to the Google

Re: [ansible-project] "VARIABLE IS NOT DEFINED!" when use {{ item }}

2021-05-28 Thread Mauricio Tavares
Call me clueless but from "stdout_lines": [ [ "Interface IP-Address OK? Method StatusProtocol", "GigabitEthernet0/0/0 42.151.182.42 YES DHCP upup"

Re: [ansible-project] docker installation problems

2021-04-26 Thread Mauricio Tavares
On Mon, Apr 26, 2021 at 7:07 AM rebecca acheampong wrote: > > > I wish i could separate them as you have told me but i am very new to ansible > and I am using it for my final project. I dont know how to do that. I changed > the host to the target node's name. I think you are right because the

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Mauricio Tavares
On Fri, Apr 23, 2021 at 12:24 PM rebecca acheampong wrote: > > Thank you. Trying the options. I have sat on it the whole day, i feel > exhausted with it. > Thank you. I will get back whatever results i have > Some suggestions, assuming the name of the host you want to run ansible on is

Re: [ansible-project] Re: ansible ssh connections

2021-04-26 Thread Mauricio Tavares
How about if you start your own thread instead of breaking into someone else's? Your question has nothing to do with the OP's On Mon, Apr 26, 2021 at 6:00 AM Naveen Konduru wrote: > > do u have any sample code ...if u have pls share with me > > On Monday, April 26, 2021 at 3:28:21 PM UTC+5:30

[ansible-project] Local (to user) path

2021-04-18 Thread Mauricio Tavares
If I install ansible from the repo to my account, would it supersede the system-installed one? I want to test a few things without messing with the production stuff. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_all_ipv4_addresses'"

2021-01-29 Thread Mauricio Tavares
On Fri, Jan 29, 2021 at 10:46 AM Aris Aguirre wrote: > > Below is working when I was still using ansible 2.3 or maybe 2.7 But no > longer ansible 2.8 or 2.9. Please be advise no matter what it is not working. > Thanks > > {% for host in groups.all %} > {{

Re: [ansible-project] Modifying a file

2021-01-25 Thread Mauricio Tavares
On Mon, Jan 25, 2021 at 1:58 PM Aris Aguirre wrote: > > I can easily use a file module to delete the existing file and create a new > one with File1 content. > But I want to modifile the file using lineinfile or replace. Please help. > Thanks > > Existing File: > This is an existing file / $ %

Re: [ansible-project] How to run Ansible tasks in parallel

2020-11-25 Thread Mauricio Tavares
On Wed, Nov 25, 2020 at 1:56 PM Vladimir Botka wrote: > > On Wed, 25 Nov 2020 10:06:41 -0800 (PST) > Prathap Dasari wrote: > > > I would like to run playbooks parallel . is it possible ? > > No. It's not possible. The utility "ansible-playbook" is not able to > run playbooks in parallel. Only

Re: [ansible-project] Is it possible to SKIP task programmatically? Using callback module?

2020-11-02 Thread Mauricio Tavares
On Mon, Nov 2, 2020 at 8:08 AM Luke C wrote: > > Thanks for the reply. > Yes I know ... :) > > The problem is that I want to have dynamic when conditions for huge amount of > tasks. > With standard when condition I would have to provide a particular static > condition for each task (which in

Re: [ansible-project] Advice on build Immutable VM's ( VMware )

2020-10-24 Thread Mauricio Tavares
What do you mean by immutable VM? On Fri, Oct 23, 2020 at 5:52 PM SP wrote: > Hi, > > Advice on build Immutable VM's ( VMware ) and is that possible using > Ansible ? > What is the best way to do? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible

Re: [ansible-project] Playbook for cisco switch interface Network Access Control

2020-09-28 Thread Mauricio Tavares
On Mon, Sep 28, 2020 at 4:17 PM Richard Lucht wrote: > > Hello experts, I am looking for a way to automate access ports for NAC on > legacy authentication. I only want to configure ports that already have > "switchport mode access" and the "authentication event server dead action > authorize

Re: [ansible-project] unistall windows server

2020-09-22 Thread Mauricio Tavares
On Tue, Sep 22, 2020 at 10:58 AM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > > Hii all, > could anyone share ansible script or basic format of script for windows > server uninstallation. i couldn't find any related scripts or modules in > official docs. > Would you mind

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Mauricio Tavares
check >>>> >>>> On Thu, Sep 17, 2020, 8:12 PM PRAVEEN KATTULAPALLI >>>> <159y1a0...@ksrmce.ac.in> wrote: >>>>> >>>>> yes, I did it from command line . i used this command >>>>> ansible all -i hosts -m win_ping

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Mauricio Tavares
d, from the command line, as in ping win2016.box.somewhere.out.there If you can't ping using, well, ping don't blame ansible. > On Thu, Sep 17, 2020 at 2:25 PM Mauricio Tavares wrote: >> >> On Thu, Sep 17, 2020 at 10:23 AM PRAVEEN KATTULAPALLI >> <159y1a0...@ksrmce.ac.in>

Re: [ansible-project] unable to ping windows machine

2020-09-17 Thread Mauricio Tavares
On Thu, Sep 17, 2020 at 10:23 AM PRAVEEN KATTULAPALLI <159y1a0...@ksrmce.ac.in> wrote: > > i got the below error when i am trying to ping windows machine > i have ran that configurepowershell.ps1 power script also and my winrm > service is running successfully nut still facing same issue,

Re: [ansible-project] Using ansible to hardening Linux Systems Remotely

2020-08-19 Thread Mauricio Tavares
ut what? >> >> Il giorno lunedì 17 agosto 2020 alle 23:13:07 UTC+2 jcp...@johnpetro.com ha >> scritto: >>> >>> Can you post the output with the error message you are getting? >>> >>> --John >>> >>> On Mon, Aug 17, 2020 at 5:0

Re: [ansible-project] Using ansible to hardening Linux Systems Remotely

2020-08-17 Thread Mauricio Tavares
On Mon, Aug 17, 2020 at 4:58 PM giob...@gmail.com wrote: > > Sorry i made a mistake..i used the command > > ansible-playbook path_to_my_playbook.yml > > and in the hosts files i added the hostname and then the IP address of the > remote Computer where i want apply the configurations. But

Re: [ansible-project] Using ansible to hardening Linux Systems Remotely

2020-08-17 Thread Mauricio Tavares
On Mon, Aug 17, 2020 at 2:16 PM giovanni baldi wrote: > > > I'm new of the Ansible World, and for the moment i used just to hardening > some linux systems using every time the command locally: > >> ansible path_to_my_playbook.yml > > > There is a way to run this commant to a remote computer? i

Re: [ansible-project] Find VLAN in a range of VLAN (930-932)

2020-08-11 Thread Mauricio Tavares
On Tue, Aug 11, 2020 at 3:51 PM Spiro Mitsialis wrote: > > Using various methods, I can get a list of VLAN on a switch port. The list > looks like the following: > "vlans": > "1,134,170,175,540,605,819-820,911-912,930-932,945,952,955,959-960,1200-1201,1400" > > I would like to check to see if

Re: [ansible-project] pip needs to be installed

2020-04-16 Thread Mauricio Tavares
On Thu, Apr 16, 2020 at 5:51 AM Punit Ramaji wrote: > > I am getting below error, when I try to pip: name=pip state=latest > TASK [install : Upgrade pip] > *** > fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find any > of

Re: [ansible-project] [ Ansible ] - How to comment (add #) all lines in file

2020-02-20 Thread Mauricio Tavares
On Thu, Feb 20, 2020 at 12:25 PM João Santos wrote: > > Hey Ansible gurus, need your help here... > > Just googled around and was not able to find a satisfactory answer to the > following: > > I have a file and want to insert in the beginning of each line the # character > No matter if it has 10

Re: [ansible-project] Doubt regarding loops and conditionals

2020-02-17 Thread Mauricio Tavares
On Mon, Feb 17, 2020 at 3:11 PM Nuno Jordão wrote: > > Hello, > > I have a doubt regarding loops and conditionals that maybe someone can make > it clear to me. > In the documentation is stated that: > > "When combining Conditionals with a loop, the when: statement is processed > separately for

[ansible-project] letsencrypt

2020-01-28 Thread Mauricio Tavares
I saw there is a module[1] that you can use to create a letsencrypt cert. How do you use it to renew said certificate? [1] https://docs.ansible.com/ansible/latest/modules/acme_certificate_module.html#acme-certificate-module -- You received this message because you are subscribed to the

Re: [ansible-project] How do I include another playbook in current playbook?

2020-01-22 Thread Mauricio Tavares
On Wed, Jan 22, 2020 at 3:47 PM Xinhuan Zheng wrote: > > Hello, > > I created a playbook which needs to call another playbook. This is my current > playbook: > > --- > # file: current_playbook.yml > > - hosts: mywebservers > gather_facts: yes > > #- import_playbook: another.yml > > roles: >

Re: [ansible-project] Run multipul powershell commands with ansible vm_shell

2020-01-12 Thread Mauricio Tavares
rg1; etc}" AFAIK (I have not touched powershell since 2018), the ";" means each command does not care what the previous did. Maybe "&" would work? > בתאריך יום א׳, 12 בינו׳ 2020 ב-21:33 מאת Mauricio Tavares > : >> >> ‪On Sun, Jan 12, 2020 at 2:26 PM ‫רגב בת

Re: [ansible-project] Run multipul powershell commands with ansible vm_shell

2020-01-12 Thread Mauricio Tavares
יום א׳, 12 בינו׳ 2020 ב-21:21 מאת Mauricio Tavares > : >> >> ‪On Sun, Jan 12, 2020 at 11:57 AM ‫רגב בתחן‬‎ wrote:‬ >> > >> > Im using Ansible 2.9.2, I need to run 3 powershell command one after the >> > other. My playbook : >> > >&

Re: [ansible-project] Run multipul powershell commands with ansible vm_shell

2020-01-12 Thread Mauricio Tavares
‪On Sun, Jan 12, 2020 at 11:57 AM ‫רגב בתחן‬‎ wrote:‬ > > Im using Ansible 2.9.2, I need to run 3 powershell command one after the > other. My playbook : > > tasks: > - name: "User Create" > local_action: > module: vmware_vm_shell > cluster: "{{ cluster }}" >

[ansible-project] output of list_vms does not have stdout

2020-01-11 Thread Mauricio Tavares
So I have the following tasks name: get running guests virt: command: "list_vms" register: vms when: test_kvm |default(False) - name: List running guests debug: msg: "{{ vms }}" when: test_kvm |default(False) I would expect when you register a variable, you should see stdout

[ansible-project] Re: git module vs command module

2020-01-06 Thread Mauricio Tavares
On Fri, Jan 3, 2020 at 4:04 PM Mauricio Tavares wrote: > > So I am using the git module to get two packages I am building > locally. First one, a library, I download and then run the make module > and built it (without installing. I will include the library as is). > That works

[ansible-project] git module vs command module

2020-01-03 Thread Mauricio Tavares
So I am using the git module to get two packages I am building locally. First one, a library, I download and then run the make module and built it (without installing. I will include the library as is). That works fine. I can run the playbook all day and it will not try to reinstall or recompile

[ansible-project] git module question

2020-01-03 Thread Mauricio Tavares
What is the equivalent of [1] git submodule update --init using the git [2] module? Would "update: yes" (the default) as in - git: repo: 'https://foosball.example.org/path/to/repo.git' dest: /srv/checkout update: yes suffice? [1] https://git-scm.com/docs/git-submodule [2]

[ansible-project] Keeping steps depending on each other while compiling

2020-01-03 Thread Mauricio Tavares
Easy question of the day: so I have a package I want to build from source. To do so I need to run config feeding some custom parameters, which makes me think I cannot then use the make [1] module. So I thought on using the command [2] module instead. I guess I could do something like -

Re: [ansible-project] Ansible Linux Server - Unreachable

2019-12-22 Thread Mauricio Tavares
On Sun, Dec 22, 2019 at 2:32 AM Parveen Datt wrote: > > Team, > > Can someone please help in solution for below requirement. I tried a lot but > did not get through yet > > > * We want ansible playbook to test network reachability of a server followed > by Power reset using IPMITOOL if Server

[ansible-project] multiple playbooks or one playbook per function?

2019-11-18 Thread Mauricio Tavares
By playbook per function I mean something like a web.yml playbook which defines how all the webservers are put together. Of course we could then define variables associated with host groups and hosts themselves to take care of the local idiosyncrasies that make them unique (location, fw

Re: [ansible-project] RHEL Patching through Ansible

2019-11-12 Thread Mauricio Tavares
On Tue, Nov 12, 2019 at 5:32 AM Sadanand Alegaonkar wrote: > > Hello Team, > > we are going to introduce patching through Ansible. > > Following step manually we perform. > 1. pre artifacts. > 2. Before patching plain reboot. > 3. Patching excluding kernel and reboot > 4. Kernel patching

[ansible-project] Tasks in a task file that should not have been included are being listed

2019-11-06 Thread Mauricio Tavares
My roles/test/tasks/main.yml file looks like this: --- # test/tasks/main.yml - include: users.yml when: user_test|default(False) - include: file.yml when: file_test|default(False) - include: string.yml when: string_test|default(False) - include: loop.yml when: loop_test|default(False)

Re: [ansible-project] cli_command and python

2019-10-21 Thread Mauricio Tavares
On Mon, Oct 21, 2019 at 11:22 AM Kai Stian Olstad wrote: > > On 21.10.2019 17:17, Mauricio Tavares wrote: > > On Mon, Oct 21, 2019 at 11:09 AM Kai Stian Olstad > > wrote: > >> > >> On 21.10.2019 16:33, Mauricio Tavares wrote: > >>> Does the cli_

Re: [ansible-project] cli_command and python

2019-10-21 Thread Mauricio Tavares
On Mon, Oct 21, 2019 at 11:09 AM Kai Stian Olstad wrote: > > On 21.10.2019 16:33, Mauricio Tavares wrote: > > Does the cli_command module require python on the remote host? > > No, it's for use with network devices and majority of them doesn't have > Python. > How

[ansible-project] cli_command and python

2019-10-21 Thread Mauricio Tavares
Does the cli_command module require python on the remote host? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com.

Re: [ansible-project] Administrator password parsing error while using run as

2019-09-30 Thread Mauricio Tavares
On Mon, Sep 30, 2019 at 1:08 PM Kai Stian Olstad wrote: > > On 30.09.2019 14:46, Manish Kumar wrote: > > [WARNING]: Could not match supplied host pattern, ignoring: win > > > > > > PLAY [install Disribution Server] > > ** > > > > skipping: no hosts

[ansible-project] mysql_user cannot find an installed package

2019-09-13 Thread Mauricio Tavares
Trying to add a user to a mysql DB. Some relevant lines from playbook are: mysql_packagelist: - python2-PyMySQL [...] - name: Install db prereqs package: name="{{mysql_packagelist}}" state=latest [...] - name: Create a db user mysql_user: name: "{{ db_user }}" password: "{{

Re: [ansible-project] 'Unknown host key error' only happens when running a playbook

2019-08-22 Thread Mauricio Tavares
On Thu, Aug 22, 2019 at 3:31 PM Zolvaring wrote: > > I don't know why the Ansible playbook would respond differently to the host > key unless it's not running as the same user that you ssh with, so someone > else will hopefully answer that but what I can suggest if you're willing to > forego

[ansible-project] 'Unknown host key error' only happens when running a playbook

2019-08-22 Thread Mauricio Tavares
So I want to reach out to my router. I first try raub@desktop:~/dev/ansible$ ssh jani...@uranus.example.com janitor@uranus. example.com's password: which is expected since I have ssh'd into the router quite many times from this computer. i.e. by now it knows uranus quite well. Just to be

Re: [ansible-project] Re: How to try one task in Ansible ?

2019-05-17 Thread Mauricio Tavares
On Fri, May 17, 2019 at 10:36 AM Dan Linder wrote: > > > Your second question: >> >> But when i run my script with module command or script or shell, the state >> is changed but i'm not rassure if all task in my script is execut ...? > > > When you use the `script:` module, anything that script

Re: [ansible-project] Splunk Administror

2019-04-04 Thread Mauricio Tavares
On Thu, Apr 4, 2019 at 1:30 PM Ankit Vashistha wrote: > > Can we ban the spammers? > What? Doesn't receiving a cold call spamming email on a mailing list make you want to drop what you are doing and do business with the spammer's (who does not even use a corporate email account, another

[ansible-project] playbook, inventory, and group_names

2019-03-29 Thread Mauricio Tavares
So let's say I have an inventory like this: [cars] honda volvo saab [motos] aprilla moto-guzzi and in my playbook I am referring to motorcycles only - hosts: motos >From what I understand, group_names returns the groups defined in the inventory. How can I get a list of the host groups I am

Re: [ansible-project] Certificate invalid error while accessing the Ansible Tower URL from a Windows Server - internet explorer

2019-03-25 Thread Mauricio Tavares
On Mon, Mar 25, 2019 at 1:12 PM Jonathan Lozada De La Matta wrote: > > Ansible Tower creates a self signed cert automatically. You need to accept > the certificate. It varies by browser on how you do it. > Can you feed it a (non-self signed) cert you created (using letsencrypt or a

Re: [ansible-project] remplace: "{{ mon_groupe | replace('&', '\&') }}"

2019-03-08 Thread Mauricio Tavares
t;bob": "Left & Right" } TASK [test : Edit strings] * ok: [testcentos] TASK [test : debug] ok: [testcentos] => { "new_bob": "Left \\& Righ

Re: [ansible-project] remplace: "{{ mon_groupe | replace('&', '\&') }}"

2019-03-08 Thread Mauricio Tavares
;' not works !! > > someone have an idea please why replace('&', '\&') not works ?!! > > Thank you very much > > Regards, > > Le vendredi 8 mars 2019 14:58:11 UTC+1, Mauricio Tavares a écrit : >> >> On Fri, Mar 8, 2019 at 8:06 AM wrote: >> > >

Re: [ansible-project] I have a strange result

2019-03-08 Thread Mauricio Tavares
On Fri, Mar 8, 2019 at 10:20 AM wrote: > > hi all, > > Why when i run this task : > > - name: Find /var/log files equal or greater than 10 megabytes ending with > .old or .log.gz > find: > paths: /{{ role_path }}/files/groups/ > patterns: '*&*.txt' > register: mes_fichiers_speciaux >

Re: [ansible-project] remplace: "{{ mon_groupe | replace('&', '\&') }}"

2019-03-08 Thread Mauricio Tavares
On Fri, Mar 8, 2019 at 8:06 AM wrote: > > hi all, > > I want replace all caracter " & " by " \& " > > > - set_fact: > remplace: "{{ mon_groupe | replace('&', '\&') }}" > > but when i use this task it's not work. > It's works only i skip " \ " > Try '\\&' instead > Someone have an idea

Re: [ansible-project] Ansible play to check if port is up on windows target host

2019-01-31 Thread Mauricio Tavares
Maybe https://docs.ansible.com/ansible/latest/modules/win_wait_for_module.html instead? On Thu, Jan 31, 2019 at 11:26 PM Sindhuja Koneru wrote: > > Hi, > > can anyone guide me why i am getting this failure message even when both the > ports are UP and running. > > > PLAYBOOK: > == > >

[ansible-project] Network, vars, and role housecleaning

2019-01-31 Thread Mauricio Tavares
So I need to define lots of variables for a specific host because I am configuring its network (turning more interfaces on and whatnot). So I created a host_vars/oddhost.yml that have lines like this: home_nic: "eth0" interfaces: - { vlan: 2, nic: "{{ home_nic }}.{{ vlan }}", [...]

Re: [ansible-project] Logging into my local system w/ ansible

2019-01-30 Thread Mauricio Tavares
On Wed, Jan 30, 2019 at 2:25 PM 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > > Hey all, > > So I've got a playbook that runs and in my hosts list is the system running > the checks themselves...it can't seem to login to itself. I get this error: > > fatal: [ansible-lx]:

Re: [ansible-project] ansible jinja2 template to loop through variables that has multiple values for each variable on a per host basis

2019-01-19 Thread Mauricio Tavares
On Sat, Jan 19, 2019 at 11:04 AM wrote: > > My Requirement is as follows > > Below is the list of variables and its multiple values : > > host1 > env : qa,dev,uat > grpn: g1 > type: t1 > port: 1401 > type: t2 > port: 1402 > type: t3 > port: 1403 > > host2 > env : qa,dev,uat >

Re: [ansible-project] Reinstall package if config dir is missing or different?

2018-11-02 Thread Mauricio Tavares
On Thu, Oct 25, 2018 at 2:20 PM Mauricio Tavares wrote: > > On Thu, Oct 18, 2018 at 10:28 AM S C Rigler wrote: > > > > Assuming you're using RPM, files that are marked "config" files in the > > package will not be overwritten by package upgrades (that's how y

Re: [ansible-project] cant run a IBM Installation manager install file using ansible.

2018-10-31 Thread Mauricio Tavares
>From your log, org.eclipse.swt.SWTError: No more handles On Wed, Oct 31, 2018 at 8:35 AM visar wrote: > > Hi Experts, > > Am very beginner on Ansible and need your kind advise here. > > I want to execute one installer file of IBM installation manger for its > silent installation and my play

Re: [ansible-project] Reinstall package if config dir is missing or different?

2018-10-25 Thread Mauricio Tavares
e Foo config is installed stat: path: "{{ Foo_config }}" register: foo_config and then trigger an reinstall if foo_config.stat.exists == False > On Thu, Oct 18, 2018 at 9:02 AM Mauricio Tavares wrote: > > > > As you know some packages install their config files/d

[ansible-project] Reinstall package if config dir is missing or different?

2018-10-18 Thread Mauricio Tavares
As you know some packages install their config files/dir during the normal package installation (the first examples that popped in my mind are postfix, bind, and apache). I understand that if the configuration file I am editing using ansible is different than the one I providing (as file or

Re: [ansible-project] Can't login Aix machine by the account that was created by Ansible user module.

2018-05-23 Thread Mauricio Tavares
On Wed, May 23, 2018 at 8:24 AM, Werner Flamme wrote: > shaolon...@hotmail.com [23.05.2018 13:24]: >> Hello everybody, >> >> I am using Ansible user module to create Aix machine account. I found >> that the new created user can't login Aix machine. >> >> The below

Re: [ansible-project] Can't login Aix machine by the account that was created by Ansible user module.

2018-05-23 Thread Mauricio Tavares
On Wed, May 23, 2018 at 7:24 AM, wrote: > Hello everybody, > > I am using Ansible user module to create Aix machine account. I found > that the new created user can't login Aix machine. > > The below is my some test step; > 1. Generate a crypted password by

[ansible-project] playbooks and tasks

2018-05-15 Thread Mauricio Tavares
I was reading the thread "VMware - convert template to virtual machines" and when I saw Nick's structure I realized I do have a lot to learn conceptually about ansible. Specifically having playbooks and roles separated. I always thought that the tasks inside roles were considered playbooks.

Re: [ansible-project] Re: Setting up kerberos

2018-05-12 Thread Mauricio Tavares
On Sat, May 12, 2018 at 9:08 PM, Mauricio Tavares <raubvo...@gmail.com> wrote: > On Mon, May 7, 2018 at 11:57 PM, Michael Pechner <mpech...@gmail.com> wrote: >> Are you looking to setup a KDC? >> Install client packages? >> Setup the config files? >> > &g

Re: [ansible-project] Re: Setting up kerberos

2018-05-12 Thread Mauricio Tavares
On Mon, May 7, 2018 at 11:57 PM, Michael Pechner wrote: > Are you looking to setup a KDC? > Install client packages? > Setup the config files? > Oops. I meant deploy a client from package to config. > On Mon, May 7, 2018 at 7:26 PM, Jordan Borean

[ansible-project] Setting up kerberos

2018-05-07 Thread Mauricio Tavares
I must be looking at the wrong places. I would like to see an example of setting up kerberos using a task file, but all I find is how to make ansible authenticate using kerberos. Suggestions? -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread Mauricio Tavares
^ here > We could be wrong, but this one looks like it might be an issue with > missing quotes. Always quote template expression brackets when they > start a value. For instance: > > with_items: > - {{ foo }} > > Should be written as: > >

Re: [ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread Mauricio Tavares
On Fri, Oct 20, 2017 at 8:57 AM, wrote: > Hola buenas, > > ¿por que se dan estas incongruencias al usar variables en el modulo copy en > su argumento dest.? > > > --- > - hosts: localhost > vars: > PathLs: /etc/ansible/ > Folder: /ansible/ > > tasks: > - name:

Re: [ansible-project] Pass conditional value to environment variable based on host in Ansible playbook

2017-09-27 Thread Mauricio Tavares
On Wed, Sep 27, 2017 at 6:00 AM, Parth Gandhi wrote: > Hi, > I need to pass conditional value based on the host in the same group to > environment variable in playbook. IS there a way to do it? > Here is the use case. I have a host file with a group having 2 servers > >

Re: [ansible-project] ansible 2 lists in playbook vars file

2017-07-08 Thread Mauricio Tavares
On Sat, Jul 8, 2017 at 6:09 PM, Anfield wrote: > Hi, > > Thanks for the reponse. This works but I dont quite understand it... > > So copylist is now basically a list with two listed values >- src >- src > > How does it pick up dest when its not really designated

Re: [ansible-project] Re: handlers and include files with variables in filenames

2017-07-08 Thread Mauricio Tavares
$ First thing I did was to check if there was no extra blank spaces around 'which handler'in duck.yml. BTW, just to be on the safe side, I did then try moving group_vars/test to roles/test/vars/main.yml to see if it makes any difference (and be closer to your setup). Outcome was the same. And I am r

Re: [ansible-project] Re: handlers and include files with variables in filenames

2017-07-05 Thread Mauricio Tavares
looks like > > --- > hosts: all > vars_files: > - vars/main.yml > tasks: > > roles: > I hate to say but I still do not know how are you selecting which handlers to use. > > On Thursday, June 8, 2017 at 6:20:54 PM UTC+8, Mauricio Tavares wrote: >

[ansible-project] handlers and include files with variables in filenames

2017-06-08 Thread Mauricio Tavares
So I am running ansible 2.3.0.0. What I want to do is to have my handlers/main.yml file to include another file (where some handlers are defined) whose name depends on a variable defined somewhere else. i.e. - include: stuff"{{ myvariable }}".yml where myvariable is defined in the file

Re: [ansible-project] Installing Ansible on AIX

2017-03-27 Thread Mauricio Tavares
On Mon, Mar 27, 2017 at 8:02 AM, Mona Gopal wrote: > Hey Jon, > > The link doesn't give an explanation on setting up Ansible. It only guides > to setup python. > The python setup has been done. However, unable to install pip which would > help me in installing Ansible. >

Re: [ansible-project] Experience with very large inventories

2017-03-10 Thread Mauricio Tavares
Isn't there a way to to renice and parallelize the tasks? On Thu, Mar 9, 2017 at 7:51 AM, wrote: > Hi Guys, > > I have a very large dynamic inventory with ~ 6000 hosts. > > Does anyone have any experience with playbook runs across this many hosts? > I'm running into

Re: [ansible-project] Re: Ansible AD Domain Authentication

2016-04-08 Thread Mauricio Tavares
I would expect his logs to show ssh trying to do kerberos auth and then failing back to whatever. The fact it is going straight to plain auth is odd. Maybe play around with ansible_ssh_common_args or ansible.cfg to get ssh more verbose? On Fri, Apr 8, 2016 at 1:51 PM, Zacharias Thompson

Re: [ansible-project] Re: Ansible Failed to Run because of SSH

2015-10-13 Thread Mauricio Tavares
On Tue, Oct 13, 2015 at 3:06 PM, GBANE FETIGUE wrote: > Still not working > You might want to elaborate. > > On Tuesday, October 13, 2015 at 12:49:41 PM UTC-4, Andrey Fesenko wrote: >> >> On Tuesday, October 13, 2015 at 5:33:45 PM UTC+3, GBANE FETIGUE wrote: >>> >>> Hey

[ansible-project] Not using simplejson

2015-07-22 Thread Mauricio Tavares
If I do not want to have simplejson in the client/node, how much of ansible's features do I lose? From what I found I can only run raw commands, but I hope I am wrong. Can someone shine some rays of hope my way? -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Not using simplejson

2015-07-22 Thread Mauricio Tavares
not have the grp module. On Wed, Jul 22, 2015 at 3:47 PM, Mauricio Tavares raubvo...@gmail.com wrote: On Wed, Jul 22, 2015 at 3:37 PM, Brian Coca bc...@ansible.com wrote: pretty much raw is the only thing you can run w/o a json library, what version of python are you running on the targets

Re: [ansible-project] Not using simplejson

2015-07-22 Thread Mauricio Tavares
On Wed, Jul 22, 2015 at 3:37 PM, Brian Coca bc...@ansible.com wrote: pretty much raw is the only thing you can run w/o a json library, what version of python are you running on the targets? For this specific target, ~ # python -V Python 2.6.7 ~ # -- Brian Coca -- You received this

Re: [ansible-project] Subversion only on server

2014-07-25 Thread Mauricio Tavares
it on the client. unarchive would be another alternative if you had a tarball rather than synchronize, which is a wrapper around rsync. I will need to check that; may not be what I want to use here but it is worth checking for a future task. On Thu, Jul 24, 2014 at 3:03 PM, Mauricio Tavares raubvo

[ansible-project] Subversion only on server

2014-07-24 Thread Mauricio Tavares
If I am storing templates and other files in subversion, does the client need to be able to reach the svn server or can I just have the ansible server grab files from svn server and feed them to client? -- You received this message because you are subscribed to the Google Groups Ansible

Re: [ansible-project] sudo not working for me (Mac OS X Mavericks)

2014-07-07 Thread Mauricio Tavares
On Sat, Jul 5, 2014 at 11:50 AM, Michael Martinez mmartinez...@gmail.com wrote: I am a new ansible user and I can not get the sudo option working for me. To keep things simple, I am just trying a simple command: shutdown -r now In ansible, I am entering it as: ansible system_name -a