Anybody to help here ?
On Tuesday, 9 June 2020 21:11:32 UTC+5:30, mcubes cloud wrote:
>
> Hi team,
>
> I have created a ansible-tower and calling a job in local host and facing
> awx user permission issues and showing error as below,
>
> {
> "msg": "privilege output closed while waiting for p
Could any one please help on it. is there any way how to use same items
multiple times in a list . Appreciate your help.
On Tuesday, 9 June 2020 15:29:46 UTC+5:30, Diyawary wrote:
>
> Hi Team,
>
> I am using with_togather so i have two list one is mserver and other is
> domain, problem is i wa
Thank you so much OM
If you cleared this query alone..it will be grt man
fatal: [localhost]: FAILED! => {
31
"msg": "privilege output closed while waiting for password prompt:\nsudo:
effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid'
option set or an NFS file system wit
Hi Mcubes,
You don't need a host file in AWX as everything can be managed from UI
itself and if you're planning to add *ansible_ssh_pass *then add it in
Variables text box of the required host.
[image: Screenshot 2020-06-10 at 11.01.43 AM.png]
Also, refer the below link to import an existing Inve
Adding..
One more doubt in Tower, we need host file or not in server ...Or Host in
the Tower UI itself enough..if so...where we add host file parameters like
ansible_ssh_pass like that all in tower, Pls help on this(Anyone)
On Tuesday, 9 June 2020 21:11:32 UTC+5:30, mcubes cloud wrote:
>
> Hi t
Adding..
One more doubt in Tower, we need host file or not in server ...Or Host in
the Tower UI itself enough..if so...where we add host file parameters like
ansible_ssh_pass like that all in tower, Pls help on this(Anyone)
On Wed, 10 Jun 2020 at 10:32, mcubes cloud wrote:
> Om, As i am new to
What kind of tasks do you need to run on the OS level? You can either use
`vmware_vm_shell` to run command or add that VM as ansible host using
`add_host` and run command in subsequent plays.
On Wed, Jun 10, 2020 at 10:44 AM JC JC wrote:
> HI Abhijeet,
>
>
>
> Thanks a lot for your script, I nee
HI Abhijeet,
Thanks a lot for your script, I need one more help that after VM HDD space
increased on VM level, we need to perform some task on OS level to see the
additional disk space, do you have any ansible script or any help from you.
Cheers
Shiva Shankar S
On Tue, 9 Jun 2020 at 16:36, Abh
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
Om, As i am new to ansible can u share me any eg or can u pls edit my
inventory (as u suggested above)
my current yml file,
---
- hosts: localhost
gather_facts: True
remote_user: root
become: True
become_user: root
become_method: sudo
Thank u for help OM
On Wednesday, 10 June 2020
As said this is intentional due to security reasons and you can use *ssh*
connection instead of *local* when running playbooks on localhost(Tower
Host).
Regards,
Ompragash
On Wed, 10 Jun 2020 at 10:18, mcubes cloud wrote:
> Hi Om,
>
> Then can u pls suggest the fix for below error ,
>
> fatal:
Hi Gursimran,
You can always get started from docs.ansible.com and below are some useful
links for you:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#delegation
https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html
Regards,
Ompragash
Hi Om,
Then can u pls suggest the fix for below error ,
fatal: [localhost]: FAILED! => {
31
"msg": "privilege output closed while waiting for password prompt:\nsudo:
effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid'
option set or an NFS file system without root privile
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
Hi Everyone,
Currently, in Ansible Tower it's not possible to escalate to root user when
using the local connection and this design has been implemented on purpose
to restrict AWX user from sudo operations. The reason is that all playbooks
in Ansible Tower are executed by AWX user. For details ref
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
Hi Nico,
Adding to it pls find the connection method below,
---
- hosts: localhost
gather_facts: True
remote_user: root
become: True
become_user: root
become_method: sudo
Any other info u need, Please help to to resolve !
On Tuesday, 9 June 2020 21:11:32 UTC+5:30, mcubes cloud wrote:
Hi All,
How to convert formatted html which get from jenkins active choices
reactive reference parameter to list of ansible?
example
jenkins parameter
output : [a,b]
Build section specific on ansible method
extra var: ${output}
--
You received this message because you are subscribed to the G
Thanks Dick. I have modified the playbook and used "block".
- name: Create partition
hosts: all
become: true
become_user: root
tasks:
- name: Gather disk info
parted:
device: /dev/sdb
unit: GB
register: device_info
when: ansible_devices.sdb is defined
Hi,
I am new to Ansible and it would be of great help if you could let me know
the difference between delegate_to, remote_user and become_user with
examples.And when to use which command.
Thank you,
Gursimran
--
You received this message because you are subscribed to the Google Groups
"Ansib
Hi Nico,
I have created ansible tower in machine A and i have created a job in machine A
. So local host pointing to machine A.
With respect to above error i believe some user privilege with awx user.
I have run the playbook in root user mode in local host running fine.
(Note: awx/tower will r
Hi there,
while working with fortinet.fortios I've engineered that the modules need
some help to track the changed and failed
status. So I've added the following parameters to each module called:
- name: "{{ device }}{{ vdom }} configure static route"
fortios_router_static:
vdom: "{{ vdom
On Tue, 9 Jun 2020 13:20:19 -0700 (PDT)
Martin Ward wrote:
> ... ideally after prompting the user for this information.
> ... ask the user for the IP address of the remote server and also the
> software they want to install?
This is an example of the playbook you might be looking for, I think
This is largely documented at
https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#developing-inventory-scripts
Additionally there is a JSON schema file describing the JSON data structure
for inventory scripts located at
https://github.com/ansible/ansible/blob/devel/examples
Hi,
I am running Ansible 2.9.7 and am looking at the dynamic inventory scripts.
I don't have any of the various software listed (AWS, OpenStack etc) in the
examples section and I need something where I can automatically set the
remote IP address at the time that the playbook is executed, ideall
Hello mcbubes,
local host means which connection-method?
Kind Regards,
Nico
Am Dienstag, 9. Juni 2020 17:41:32 UTC+2 schrieb mcubes cloud:
>
> Hi team,
>
> I have created a ansible-tower and calling a job in local host and facing
> awx user permission issues and showing error as below,
>
> {
>
It's in the OG post.
I can't get it to post /w the code, so here we go.
https://pastebin.com/ziMcfTSt
On Tuesday, June 9, 2020 at 3:28:13 PM UTC-4, oxido A wrote:
>
> And What happens when you -The admin execute :
>
> show zone status ??
>
>
>
> El mar., 9 jun. 2020 a las 14:22, Jesse Lyon ( >
And What happens when you -The admin execute :
show zone status ??
El mar., 9 jun. 2020 a las 14:22, Jesse Lyon ()
escribió:
> Alrighty
>
> So I've run into a bit of a head scratcher
>
> New MDS deployment, right?
> all of 0 customers running across it so far,
> 2 admins poking at it, one be
Alrighty
So I've run into a bit of a head scratcher
New MDS deployment, right?
all of 0 customers running across it so far,
2 admins poking at it, one being myself trying to get Ansible playbooks to
play nicely with this new pair.
Playbook functions on old MDS's without an incident. that is on
On Tue, 9 Jun 2020 at 14:26, Rajesh wrote:
>
> Thanks again for your help. What needs to be done so that the below play will
> print the message?
>
> - name: No extra hard disk
>debug:
> msg: "No extra hard disk available"
>when: ansible_devices.sdb is undefined
This should be mov
Hi team,
I have created a ansible-tower and calling a job in local host and facing awx
user permission issues and showing error as below,
{
"msg": "privilege output closed while waiting for password prompt:\nsudo:
effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid'
ok I was able to use the customization_spec to join the machine to the
domain
But how do I assign the statistic IP to the server?
my host file looks like this before using the customization_spec
[prod-k8s-workers]
prod-k8s-worker01 deploy_vsphere_datastore='RW-VA-NIM-VOL9'
guest_custom_ip='10.
hello !
I try to reduce times when i need to typing a password in ansible with the
vault-id given by a script.
i have made some test with vault but i can't succed with a "become: yes"
define on hosts instruction.
My vault file vault.yml contains password like this:
ansible_user: root
hi
for
customization:
domainadmin: '{{ lookup("env", "ANSIBLE_NET_USERNAME") }}'
domainadminpassword: '{{ lookup("env", "ANSIBLE_NET_PASSWORD") }}'
joindomain: domain.fqdn
what does this mean?
lookup("env", "ANSIBLE_NET_USERNAME"
are you manually putting the username
Thanks again for your help. What needs to be done so that the below play
will print the message?
- name: No extra hard disk
debug:
msg: "No extra hard disk available"
when: ansible_devices.sdb is undefined
Thanks,
Rajesh
On Tuesday, June 9, 2020 at 9:35:07 PM UTC+10, Dick Visse
On Tue, 9 Jun 2020 at 12:20, Rajesh wrote:
>
> Thanks for the reply. The playbook is not printing message as per the below
> task.
>
>- name: No extra hard disk
> debug:
> msg: "No extra hard disk available"
> when: ansible_devices.sdb is undefined
This is also correct. As th
Hi Shiva,
You can do like this -
---
- hosts: localhost
gather_facts: false
vars_files:
- vcenter_vars.yml
tasks:
- name: Resize to 10GB from 4GB
vmware_guest_disk:
validate_certs: False
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
Thanks for the reply. The playbook is not printing message as per the below
task.
- name: No extra hard disk
debug:
msg: "No extra hard disk available"
when: ansible_devices.sdb is undefined
Thanks,
Rajesh
On Tuesday, June 9, 2020 at 2:21:10 PM UTC+10, Dick Visser wrote:
>
>
Hi Team,
I am using with_togather so i have two list one is mserver and other is
domain, problem is i want to pass same mserver two times in the list ,but
it is giving error and using only last defined value.
My requirement is for mserver list this can be same mserver or sometimes
different ms
Hello,
Thanks a lot. Its clear now. I have used "remote_src" to apply "become"
logic.
Regards,
Mukuntha.
On Tue, 9 Jun 2020 at 12:29, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:
> Hello,
>
> but become applies on target host, not controller. And, as stated
> before, in the fi
Apparently ios_command module accepts commands (in plural) instead of
command.
Regards,
El mar., 9 jun. 2020 a las 9:30, Redhat () escribió:
> Hello;
>
> I wanted to update switch cisco by ansible. To copy the ios image from
> SFTP server, the playbook deployment will display the following error
Hello;
I wanted to update switch cisco by ansible. To copy the ios image from SFTP
server, the playbook deployment will display the following error:
FAILED! => {"changed": false, "msg": "Unsupported parameters for
(ios_command) module: register Supported parameters include: auth_pass,
authoriz
On Mon, 8 Jun 2020 17:52:25 -0400
vinay kumar wrote:
>shell: systemctl list-unit-files --all --state=disabled,enabled,unknown
> --no-legend --no-pager
>register: _service_status
>
> comment: "tftp service is in enabled"
> when: _service_name _expected_state in service_status
>
I meant what would the topic starter do with this list of services.
On Tue, 9 Jun 2020 at 07:51, Vladimir Botka wrote:
> On Tue, 9 Jun 2020 06:27:41 +0200
> Dick Visser wrote:
>
> > OK... and what would you DO with this information..?
>
> Nothing. Why are you asking?
>
> --
> Vladimir Botka
>
44 matches
Mail list logo