[ansible-project] Re: Cisco command to clean the switch 'request platform software package clean switch all'

2021-06-07 Thread Suneel Hegde
Tried this as well it did not worked - name: clean the switch cisco.ios.ios_command: commands: - command: request platform software package clean switch all prompt: Do you want to proceed? [y/n] answer: yes newline: false On Tue, Jun 8, 2021 at 2:11 AM Suneel Hegde wrote: > I am trying to

Re: [ansible-project] Vizualizing execution of "include_tasks" tasks

2021-06-07 Thread Brian Coca
those should be the tasks following the include message -- -- Brian Coca -- 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

Re: [ansible-project] Running python3 script from ansible

2021-06-07 Thread Brian Coca
Yes, Simplest way is using the 'script' action and make sure the shebang on the script points to the python3 you want. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Vizualizing execution of "include_tasks" tasks

2021-06-07 Thread Alex Wanderley
Hello, When executing a playbook which has "include_tasks", I can see the message about the tasks file that's being included. For example: TASK [Expand disks and file systems] * included: /ansible/playbooks/tasks/expand_fs.yml for yyy PLAY RECAP Is there a way to tell

[ansible-project] Cisco command to clean the switch 'request platform software package clean switch all'

2021-06-07 Thread Suneel Hegde
I am trying to execute the command from ansible to clean the cisco switch after the upgrade, everything worked and switch got upgrade. but this command is not working to clean the switch *test-switch#request platform software package clean switch all* This operation may take several minutes...

[ansible-project] Running python3 script from ansible

2021-06-07 Thread John Menke
I have a python3 script that i want to run from a playbook that is using the python2 interpreter. Is this possible? -john -- 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,

Re: [ansible-project] Passing IP address from one playbook to another playbook

2021-06-07 Thread Rajaniesh Kaushikk
Let me post the playbook to help you understand it better I have two playbooks 1: Install azure vm 2 install mongo db and tomcat I want to integrate both so first one send ip to second playbook and second play book does its job/ First playbook code is here: AzurePlaybook.yml -All the

[ansible-project] Create Oracle Wallet with expect module

2021-06-07 Thread coussi....@gmail.com
Hi, I try to create an Oracle Wallet with expect module. I pass the question and the answer to expect module : # Création du Wallet - name : "{{ titre_post_provision_oracle_wallet }} - Création du Wallet" expect: command: /bin/bash -c "source {{ oracle_home }}/.bash_profile ; mkstore

Re: [ansible-project] Opportunity to use signed playbook.

2021-06-07 Thread Stefan Hornburg (Racke)
On 07/06/2021 13:32, Elkmar wrote: Yep, Antony right. The idea is as follows: we have fileA and fileB. FileA is "signed" by me (for example has digital signature) and we can start it with ansible-playbook command. FileB doesn't have signature so it can't do any changes on remote hosts. Is it

Re: [ansible-project] Opportunity to use signed playbook.

2021-06-07 Thread Vladimir Botka
On Mon, 7 Jun 2021 12:48:57 +0200 Antony Stone wrote: > I interpret "signed" in the original question to mean something that cannot > be > falsified by someone who is running the ansible commands. Locally, you might want to set the ownership and the permissions as appropriate. Use get_url if

Re: [ansible-project] Opportunity to use signed playbook.

2021-06-07 Thread Elkmar
Yep, Antony right. The idea is as follows: we have fileA and fileB. FileA is "signed" by me (for example has digital signature) and we can start it with ansible-playbook command. FileB doesn't have signature so it can't do any changes on remote hosts. Is it possible? понедельник, 7 июня 2021

[ansible-project] Re: Getting Error while running playbook "msg": "[Errno None] Unable to connect to port 22

2021-06-07 Thread subrat mangaraj
Hello Experts, Any lead. On Sunday, June 6, 2021 at 1:01:41 PM UTC+5:30 subrat mangaraj wrote: > 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

Re: [ansible-project] Opportunity to use signed playbook.

2021-06-07 Thread Antony Stone
On Monday 07 June 2021 at 12:44:23, Vladimir Botka wrote: > shell> cat test-003.yml > - hosts: all > gather_facts: false > vars: > my_filename: test-003.yml > my_path: "{{ playbook_dir }}/{{ my_filename }}" > my_hash_path: "{{ my_path }}.sha1" > my_hash: "{{ (lookup('file',

Re: [ansible-project] Opportunity to use signed playbook.

2021-06-07 Thread Vladimir Botka
On Mon, 7 Jun 2021 02:48:39 -0700 (PDT) Elkmar wrote: > ... check a playbook authenticity before execution For example shell> cat test-003.yml - hosts: all gather_facts: false vars: my_filename: test-003.yml my_path: "{{ playbook_dir }}/{{ my_filename }}" my_hash_path: "{{

[ansible-project] Opportunity to use signed playbook.

2021-06-07 Thread Elkmar
Hi all. I need to check a playbook authenticity before execution. Is it possible? If yes how can I sign a playbook and check it in ansible before execution (and also prohibit any execution of non signed playbooks)? Sorry, if this question has been already discussed, but I have not found