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
>
> +++
>
>
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
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"
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
Call me clueless but from
"stdout_lines": [
[
"Interface IP-Address OK?
Method StatusProtocol",
"GigabitEthernet0/0/0 42.151.182.42 YES
DHCP upup"
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
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
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
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
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 %}
> {{
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 / $ %
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
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
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
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
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
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
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>
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,
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
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
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
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
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
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
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
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
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:
>
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 רגב בת
יום א׳, 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 :
>> >
>&
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 }}"
>
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
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
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
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]
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
-
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
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
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
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)
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_
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
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.
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
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: "{{
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
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
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
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
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
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
t;bob": "Left & Right"
}
TASK [test : Edit strings] *
ok: [testcentos]
TASK [test : debug]
ok: [testcentos] => {
"new_bob": "Left \\& Righ
;' 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:
>> >
>
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
>
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
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:
> ==
>
>
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 }}",
[...]
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]:
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
>
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
>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
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
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
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
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
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.
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
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
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"
^ 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:
>
>
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:
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
>
>
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
$
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
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:
>
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
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.
>
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
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
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
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
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
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
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
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
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
86 matches
Mail list logo