I am facing issue while connecting to VERSA FLEXVNF router via SSH through
Bastion host with LDAP user where are everything working file with local
user.
The main difference in the manual ssh login is that when I login with local
user I get in to the linux shell whereas when I login with LDAP
We cannot execute any script on network devices, execution will happen only
in the Ansible server . The cron job will only do the scheduling job.
On Wednesday, August 25, 2021 at 4:12:40 AM UTC+5:30 Vikram S wrote:
> Hi,
>
> After going tghrough documentation for cron module, i doubt if it wou
Hi,
After going tghrough documentation for cron module, i doubt if it would
help in scheduling script to be executed in network devices. Are you sure
it helps with scheduling for scisco network devices?
Regards,
Vikram
On Monday, 23 August, 2021 at 8:50:10 am UTC+5:30 melvins...@gmail.com
wro
Check kron module, it's similar to at.
On Mon, 23 Aug, 2021, 6:19 am Vikram S, wrote:
> Hi Erik,
>
> no, i wanted to schedule a script to be run on a cisco switch/firewall
> (network device). i don't think 'at' module can be installed on a network
> device.
>
> so is there any other way i can sc
Hi Erik,
no, i wanted to schedule a script to be run on a cisco switch/firewall
(network device). i don't think 'at' module can be installed on a network
device.
so is there any other way i can schedule script to be run in device in
below format?
2960 switch-1 - run 2960upgrade.yaml - run at
It seems environment issue. Find the 'at' command location and export to
the binary path.
On Sun, 22 Aug, 2021, 2:40 am Vikram S, wrote:
> I tried to schdule a script to be run at a particular time as per the
> instruction in documentation for 'at' module. However iam getting below
> error. Not
Is *at* installed on your hosts?
https://docs.ansible.com/ansible/2.5/modules/at_module.html#requirements
On Sat, Aug 21, 2021 at 11:10 PM Vikram S wrote:
> I tried to schdule a script to be run at a particular time as per the
> instruction in documentation for 'at' module. However iam getting
I tried to schdule a script to be run at a particular time as per the
instruction in documentation for 'at' module. However iam getting below
error. Not sure what iam doing wrong, please guide.
First, i wrote a script which references another script that need to be
executed in 5 minutes. Both
Hi Dipun,
Could you please paste the playbook used?
You are trying to combine dict and AnsibleSequence (which is basically a
list).
On Sun, Jun 6, 2021 at 5:33 PM Dipun Dwibedy wrote:
> ansible-playbook switch.yml -v
> Using /home/sidwi/ansible/ansible.cfg as config file
> ERROR! failed to com
ansible-playbook switch.yml -v
Using /home/sidwi/ansible/ansible.cfg as config file
ERROR! failed to combine variables, expected dicts but got a 'dict' and a
'AnsibleSequence':
{}
[{"hostname": "switch1", "dev_vlan": 2, "pro_vlan": 3, "pro_vlan_ip":
"10.100.10.1", "pro_vlan_network": "10.100.10.
Hello Experts,
I have installed ansible using homebrew.
While trying to run few IOS command from my mac PC via jump server I am
getting below errors.
* ESTABLISH LOCAL CONNECTION FOR USER: root*
EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/var/root/.ansible/tmp/ansible-local-13708nory1o1
Hi,
I installed ansible.utils ansible colelctions and used native parser and
XML parser (as Pyats genie parser did not work for a command i need to
parse).
But iam getting below error and not sure why it happens expecially when iam
following the syntax as given in documentation. Any pointer
Hi,
I am getting an error when i run playbook for parsing using genie (pyats)
- "parse_genie: Genie package is not installed. To install, run 'pip
install genie'."
1. However i have already installed pyats and genie.
2. I use WSL linux in windows VDI and use debian linux 10 (since some
suppor
Hi,
I installed pyats parser (got a minor error but installation was
completed). Then i ran below 2 scripts but getting error.
1st script was run as per example in ansible documentation for
ansible.netcommon.cli_parse. I have ansible 2.9 and when i select that
version in above documentation
Hi Praveen,
When a local RPM is passed, yum module tries to retrieve information about
name, version, release, and arch from the given RPM. It seems that logic in
the module fails to retrieve that for *oracle-database-xe-18c-1.0-1.x86_64.rpm.
*Can you please check if RPM is OK?
On Wed, Mar 24, 20
Below is the error I am getting.
*FAILED! => {"changed": false, "msg": "Failed to get nevra information from
RPM package: /var/oracle-database-xe-18c-1.0-1.x86_64.rpm"*
Thanks and Regards,
Praveen Singh
On Tue, Mar 23, 2021 at 12:12 PM Dick Visser wrote:
> Please post text and not some unreada
Please post text and not some unreadable screenshot
On Tue, 23 Mar 2021 at 18:43, 'Praveen Kumar Singh' via Ansible
Project wrote:
>
> Hello Guys,
>
> I am getting below error while installing Oracle 18c express edition RPM
> package. So can someone please help.
>
>
>
> Thanks and Regards,
> Pr
Hello Guys,
I am getting below error while installing Oracle 18c express edition RPM
package. So can someone please help.
[image: Error.PNG]
Thanks and Regards,
Praveen Singh
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe
Thanks, issue resolved
On Wednesday, June 10, 2020 at 10:17:30 AM UTC+5:30, Ompragash wrote:
>
> Hi Mohanraj,
>
> As the error states, you have defined an unsupported parameter "commands"
> for cli_command module and your task should look something like below:
>
> - name: run command expecting us
Hi Mohanraj,
As the error states, you have defined an unsupported parameter "commands"
for cli_command module and your task should look something like below:
- name: run command expecting user confirmation
cli_command:
command: show interface summary
prompt: Press any key to continue
Hello,
I getting error - "Unsupported parameters for (cli_command) module" when
trying to run install activate command in cat9k device.
*Below is the playbook snippet:*
- name: Run install activate and reload
block:
- name: Run install activate
cli_command:
commands:
- c
On 5/5/20 12:26 PM, Meir Yanovich wrote:
> i have this ansible simple playbook :
> where "/home/ec2-user/test1.txt" exists on disk
>
>
> |
> ---
> -name:check ifexsist
> hosts:localhost
> gather_facts:false
> tasks:
>
> -name:Getproject name
> shel
i have this ansible simple playbook :
where "/home/ec2-user/test1.txt" exists on disk
---
- name: check if exsist
hosts: localhost
gather_facts: false
tasks:
- name: Get project name
shell: "echo ''"
register: name_var
Hi Kai,
I could do achieve what i intended. I made the following changes using
Jinja format and my issue solved.
Thanks for the help. Th echanges i made was:
In the Instance id section i used the foloing formula and it worked like a
charm.
- name: Set fact for Instance id from Tenant ID
Post the *complete* output of
- debug:
var: instid
Posting snippets is useless.
On Wed, Sep 25, 2019 at 3:39 AM Rakesh Parida
wrote:
> There are 11 items , i will paste the out put of one item, all others are
> similar, or this mail will be lengthy. SO pasting the out put of one item.
>
>
On 24.09.2019 19:48, Rakesh Parida wrote:
> Hi Kai,
>
> I had already tried it it gives me o/p as same as :
> debug:
> msg: {{ instid }}
>
> Both the o/ps are similar.
>
> Now i want the stdout_lines for each item as my desired o/p
> something like:
> e8ebc5a4-17f3-4b80-a935-03164211a804 T
Hi Kai,
I had already tried it it gives me o/p as same as :
debug:
msg: {{ instid }}
Both the o/ps are similar.
Now i want the stdout_lines for each item as my desired o/p
something like:
e8ebc5a4-17f3-4b80-a935-03164211a804 TOMICS2
7865dvgsf-17f3-4b80-a935-03164211a804 TOMICS1
abc12345g-17
There are 11 items , i will paste the out put of one item, all others are
similar, or this mail will be lengthy. SO pasting the out put of one item.
"_ansible_delegated_vars": {
"ansible_delegated_host": "localhost",
"ansible_host": "localhost"
On 24.09.2019 19:06, Rakesh Parida wrote:
> - name: Retrieve instance id from tenant
> shell: openstack server list --all-projects --project "{{
> tenantid.stdout }}" | awk 'NR > 3 { print $2, $4 }' | grep -i "{{ item }}"
> with_items: "{{ hostvars[groups['nodes'][0]]['fact'] }}"
> re
What is the *complete* output from a debug of instid?
Regards, K.
On Wed, Sep 25, 2019 at 3:06 AM Rakesh Parida
wrote:
> Hi,
>
> I have playbook to retrieve the Instance id of Openstack nodes.Now
> everything works fine but the resgitered value for instid.stdout_lines gets
> an undefined err
Hi,
I have playbook to retrieve the Instance id of Openstack nodes.Now
everything works fine but the resgitered value for instid.stdout_lines gets
an undefined error.
*The error was: 'dict object' has no attribute 'stdout_lines'* .. but when
i debug the complete registered variable instid i se
If you could show your code that would be much better to understand.
On Tue, 19 Feb, 2019, 10:24 PM sajal tiwari Hello,
> I am getting below error while using register module with network
> modules(ios_command & nxos_command).
> Can someone help on the issue.
>
> ERROR! Module "register" shadows
Hello,
I am getting below error while using register module with network
modules(ios_command & nxos_command).
Can someone help on the issue.
ERROR! Module "register" shadows the name of a reserved keyword. Please
rename or remove this module. Found at
/opt/rh/python27/root/usr/lib/python2.7/sit
The command worked. It found several java executables:
/usr/java/jdk64-1.8.0_151/bin/java
/usr/java/jdk64-1.8.0_151/jre/bin/java
/usr/java/jre64-1.8.0_111/bin/java
/usr/java/jre64-1.8.0_111/jre/bin/java
If you look closely at the output you got from your command, you will see
that there is a list
I tried to use the above command as per you suggestion and again got the
permission denied error.
fatal: [ma-idmspp-lapp565]: FAILED! => {"changed": true, "cmd": "find -L
/usr -executable -type f -name \"java\" -print", "delta": "0:00:01.458827",
"end": "2019-01-23 15:10:26.161587", "msg": "no
It looks as if it's working. It is running the command "which java". The
"which" command is unable to find an executable called "java" in the path,
so it outputs an appropriate message to stderr and returns a non zero value.
It looks as if you are trying to locate the java executable, but that wil
I tried removing the args and executable, then while trying to execute
again I am getting an error below.
{"changed": true, "cmd": "which java", "delta": "0:00:00.074712", "end":
"2019-01-23 13:41:10.748039", "msg": "non-zero return code", "rc": 1,
"start": "2019-01-23 13:41:10.673327", "stder
On Tuesday, 22 January 2019 16:05:06 CET ruben melvin wrote:
> Hi guys,
>
> I am trying to execute below ansible playbook.
>
> ---
> - name: "checking the java version"
> hosts: host
> remote_user: myremoteuser
> gather_facts: False
> become: yes
> become_user: serveruser
> become_met
Hi guys,
I am trying to execute below ansible playbook.
---
- name: "checking the java version"
hosts: host
remote_user: myremoteuser
gather_facts: False
become: yes
become_user: serveruser
become_method: 'sudo'
tasks:
- name: which java
shell: which java
args:
The pip method of installation doesn't not create the /etc/ansible nor any
default files that go there.
OS packages will often do so.
This is not a problem, that just happens to be a default place to look for
a things, but you can configure other paths using an ansible.cfg file or
via the CLI, or
Hi i installed Ansible on MacOS and getting below errors
> ansible all -m ping
* [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source*
* [WARNING]: No inventory was parsed, only implicit localhost is available*
* [WARNING]: provided hosts list is empty, only localhost is avail
I don't believe the ping module will work with any device that cannot run
python
locally. https://docs.ansible.com/ansible/2.5/modules/ping_module.html
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop
Hello Aris,
you are trying to define the hosts file like a ini file (with name=value
and group:vars) but you are trying to read like if it's in yaml format.
More information about how to describe in yaml/ini format here =>
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html
T
Hi All,
I need your assistance to resolve this issue.
Error details when I run in -vvv option:
Using module file
/opt/ansible/local/lib/python2.7/site-packages/ansible/modules/windows/win_feature.py
<127.0.0.1> PUT /home/ameya/.ansible/tmp/ansible-local-1269sNJo2N/tmpn6Pzqa
TO
/home/ameya/.ansib
Hi,
I'm trying test ping using command "ansible -m ping all" and then i getting
error bellow :
# ansible -m ping all
[WARNING]: * Failed to parse /etc/ansible/hosts with yaml plugin: Syntax
Error while loading YAML. found unexpected ':' The error appears to have
been in
'/etc/ansible/hosts':
If the ssh-agent must be running for your installer to complete, then
you'll probably have to run it after the ssh-add:
- name: Add and load private key to ssh-agent* and start installer*
shell: "eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa* &&
/path/to/installer*"
My gut feeling is that there'
Hi Dan,
Actually we install some of my on-premises software on remote machine but
we required ssh-agent configured on that remote machine to install this
software.
without authenticate with that keys we can not able to install this
software on my remote machine.
is their any way to check the bel
Hi Pranay,
You asked, is "task i wrote in playbook in correct or not ?"
Based on the output from your playbook provided earlier, the tasks/commands
("ssh-agent" and "ssh-add") ARE being executed on the remote machine
without error - the yellow "changed:" response notes that the "shell:"
module
Hi Dan,
Thanks for providing information.
Actually, I have already add key file to client machine.
I have a question ...The task i wrote in playbook in correct or not ? if it
wrong can you send me the correct task to perform those command on client
machine.
- name: Add and load private key to s
The "ssh-agent" and "ssh-add" are usually run on a system as a specific
user to add an SSH key to a temporary 'keychain' so any subsequent SSH
commands can automatically (and without prompting) use a specific ssh key
to connect to a second system.
When you run them in the Ansible "shell" module
Hi Jonathan,
I use below task in my playbook,
- name: Add and load private key to ssh-agent
shell: "eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa"
When i run playbook no error found,
[image: image.png]
But I log in to my client machine and type "ssh-add -l" command then I get
below error
[im
what exactly are you trying to accomplish?
On Sat, Sep 29, 2018 at 6:03 PM pranay varankar
wrote:
> Hi Jonathan,
>
> But which module I use to run *eval `ssh-agent -s` or ssh-add
> /root/bashrc.*
>
> *Shell/command/action/raw module to create task for above command*
>
>
> On Sun 30 Sep, 2018, 2:
Hi Jonathan,
But which module I use to run *eval `ssh-agent -s` or ssh-add /root/bashrc.*
*Shell/command/action/raw module to create task for above command*
On Sun 30 Sep, 2018, 2:53 AM Jonathan Lozada De La Matta, <
jloza...@redhat.com> wrote:
> try
>
> ssh-agent bash
>
> then
>
> ssh-add
>
>
try
ssh-agent bash
then
ssh-add
On Sat, Sep 29, 2018 at 5:04 PM pranay varankar
wrote:
> Hi Jonathan,
>
> actually i m not getting error when i run playbook but after i will login
> to client machine and check using "ssh-add -l" command then i get "Could
> not open a connection to your au
Hi Jonathan,
actually i m not getting error when i run playbook but after i will login
to client machine and check using "ssh-add -l" command then i get "Could
not open a connection to your authentication agent" error.
Can you send me task code to perform this operation.
On Sun, Sep 30, 2018 a
what error are you getting ?
On Sat, Sep 29, 2018 at 7:05 AM pranay varankar
wrote:
> Hi,
>
> I need to add ssh-agent for root user. so I use below command through
> ansible task but getting an error.
>
> *eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa"*
>
> please give me task to perform below co
Hi,
I need to add ssh-agent for root user. so I use below command through
ansible task but getting an error.
*eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa"*
please give me task to perform below command on my target machine.
--
You received this message because you are subscribed to the Google
Hi All,
I am getting error while running the ansible playbook by using ssh command
error is like *host key verification failed.*
Looking forward ro reply.
Thanks & Regards
Sumit Sahay
7044112109
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" g
Setup log saved to setup.log.
[root@localhost ansible-tower-setup-bundle-2.3.0-1.el6]# ./setup.sh -p
SSH password: Using
/root/ansible-tower-setup-bundle-2.3.0-1.el6/ansible.cfg as config file
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated.
Use 'import_tasks' for
I have installed ansible tower on CentOS 7. I am getting error message
while I am creating host or group. Please advice.
Ansible Version :*ansible 2.4.0.0*
CentOS : *CentOS Linux release 7.4.1708 (Core)*
Error message when creating group : *Call to /api/v2/Groups/ .Get
returned: 500 A
Hi,
I am trying to create a new role from my playbook. I had created a file
with the created role
---
- hosts: localhost
connection: local
gather_facts: yes
roles:
- own_test
when i am trying with ansible-playbook own_role.yml getting an error
PLAY [localhost]
***
On 31. mars 2017 23:39, Andrew Meyer wrote:
When I run my playbook i'm getting the following:
ansible-playbook asa-config1-test.yml
ERROR! Syntax Error while loading YAML.
The error appears to have been in
'/home/andrew.meyer/playbooks/asa-config1-test.yml': line 11, column 16,
but may
be els
When I run my playbook i'm getting the following:
ansible-playbook asa-config1-test.yml
ERROR! Syntax Error while loading YAML.
The error appears to have been in
'/home/andrew.meyer/playbooks/asa-config1-test.yml': line 11, column 16,
but may
be elsewhere in the file depending on the exact sy
On 18.01.17 09:17 Dick Visser wrote:
> You seem to be specifying a parameter as the command?
> As per examples specify the actual command first, and then put the
> parameters after that.
> Preferably on different lines to make it more readable.
Also, as soon as spaces are involved, trying to quote
You seem to be specifying a parameter as the command?
As per examples specify the actual command first, and then put the
parameters after that.
Preferably on different lines to make it more readable.
http://docs.ansible.com/ansible/command_module.html#examples
Dick
On Tue, 17 Jan 2017 at 10:37,
Hi,
I am using ansible 2.2 to automate login to the remote machine and
running onos on it.For that I have written a simple playbook as shown below
playbook.yml
---
- hosts: atrium
gather_facts: no
vars:
com: ok clean
tasks:
- name: running ok clean
command: chdir=/home
I have seen the earlier thread related to this error.
https://groups.google.com/forum/#!search/ERROR$3A$20include_vars$20is$20not$20a$20legal$20parameter$20in$20an$20Ansible$20task$20or$20handler.$20while$20running$20a$20playbook./ansible-project/7Lnf5uuCWCY/mklVVJ58PwYJ
And I also tried the solut
Thanks Mark, Daniel. That was the yml issue.
On Saturday, February 14, 2015 at 3:55:27 PM UTC+5:30, Mark Phillips wrote:
>
> You might be getting bitten by something I fixed in December...
>
> https://github.com/ansible/ansible-modules-core/pull/562
>
> Does it do the same if you use the devel bra
You might be getting bitten by something I fixed in December...
https://github.com/ansible/ansible-modules-core/pull/562
Does it do the same if you use the devel branch?
On Friday, 13 February 2015 15:19:17 UTC, Daniel H wrote:
>
> Can you post the vsphere_guest task that's failing? I can't pick
Can you post the vsphere_guest task that's failing? I can't pick it exactly
from that error but we use it a fair bit so can at least have a gander for
any of the things we tripped up on while figuring it out.
Cheers,
Daniel
On Fri, Feb 13, 2015 at 12:56 AM, wrote:
> I am getting below error whi
On Fri, 13 Feb 2015 01:50 -0800, jniti...@gmail.com wrote:
> Hi,
>
> Below is yml am using,
>
> ---
> - hosts: 127.0.0.1
> connection: local
> user: osboxes
> sudo: false
> gather_facts: false
> serial: 1
>
> tasks:
> - vsphere_guest:
> vcenter_hostname: xxx
> username:
Hi,
Below is yml am using,
---
- hosts: 127.0.0.1
connection: local
user: osboxes
sudo: false
gather_facts: false
serial: 1
tasks:
- vsphere_guest:
vcenter_hostname: xxx
username: xx
password: x
guest: testansible
state: powered_on
vm_dis
On Thu, 12 Feb 2015 03:56 -0800, jniti...@gmail.com wrote:
> I am getting below error while using Ansible (version 1.8.2)
> vSphere_guest
> module,
>
> osboxes@osboxes:~$ ansible-playbook /etc/ansible/playbooks/main.yml -K
> sudo password:
>
> PLAY [localhost]
>
I am getting below error while using Ansible (version 1.8.2) vSphere_guest
module,
osboxes@osboxes:~$ ansible-playbook /etc/ansible/playbooks/main.yml -K
sudo password:
PLAY [localhost]
**
TASK: [vsphere_guest ]
*
Looks like your indentation in your playbook is off.
Also, name should be set per task, not as a task that is just called name.
On Wed, Apr 30, 2014 at 1:35 PM, thomas farah wrote:
> getting ERROR: hosts declaration is required
> and i have changed lineinfile: to action: lineinfile
>
> ---
getting ERROR: hosts declaration is required
and i have changed lineinfile: to action: lineinfile
---
- hosts: webservers
remote_user: xyz
sudo: true
vars:
Myname: ${ansible_fqdn}
tasks:
- name: copy postfix1 files to servers
- lineinfile: dest=/etc/postfix/main.cf regexp="^#m
Thanks very much Matt! What you described was exactly what the situation
was and your suggestion solved my problem!
Yes, I did have one vm called 'testvm2' already existed in my environment.
I guess this vm was the culprit. Now I used a different name 'smallvm', and
the vm creation was successful.
I doubt a log file will give you any additional information.
I looked at nova_compute, and that error seems to occur in a specific situation.
The code does the following:
1) List all servers, passing a filter parameter to the API where it filters
based on the name you provided.
2) If it get's a
Hi All,
I'm new in Ansible and looking at the OpenStack related modules in ansible.
All the modules worked pretty well in my environment except the
nova_compute module when I tried to create a VM instance. I was getting the
following error:
PLAY [all]
***
79 matches
Mail list logo