Re: [ansible-project] Pass user inputs to bash script via ansible

2023-02-06 Thread Linux Study
We are executing via jenkins and it will call ansible tower to run playbook... Regards, Abhijit On Tue, 7 Feb 2023, 01:03 'Rowe, Walter P. (Fed)' via Ansible Project, < ansible-project@googlegroups.com> wrote: > How is the ansible playbook being run? command line? ansible automation > platform?

[ansible-project] how to activate virtualenv on remote host

2023-02-06 Thread SysAdmin EM
Hi all, i try activate an virtualenv on remote host but not work. I see this error: fatal: [wc2-prod]: FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": true, "cmd": "source env/bin/activate", "delta": "0:00:00.004889",

Re: [ansible-project] Pass user inputs to bash script via ansible

2023-02-06 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
How is the ansible playbook being run? command line? ansible automation platform? Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On Feb 6, 2023, at 1:35 PM, Linux Study wrote: Hi All, Is there way to pass user inputs to bash script via ansible? Rega

Re: [ansible-project] Pass user inputs to bash script via ansible

2023-02-06 Thread Alex Wanderley
Hi, Take a look at Ansible's "expect" module. It may give what you need... Alex On Mon, Feb 6, 2023 at 11:51 AM Linux Study wrote: > Bash script itself asking some questions. So how can we pass that answer > via ansible? > > Regards, > Abhi > > On Tue, 7 Feb 2023, 00:12 Alex Wanderley, > wrot

Re: [ansible-project] Pass user inputs to bash script via ansible

2023-02-06 Thread Linux Study
Bash script itself asking some questions. So how can we pass that answer via ansible? Regards, Abhi On Tue, 7 Feb 2023, 00:12 Alex Wanderley, wrote: > Hi, > > One possible way would be using "vars_prompt" to request the user's input > and then pass that variable on as a parameter to your script

Re: [ansible-project] ERROR! Problem running vault password script /space/build/ansible-vault-password.txt ([Errno 8] Exec format error: '/space/build/ansible-vault-password.txt'). If this is not a sc

2023-02-06 Thread sowmithri d
Hi Martz, Running `chmod -x /space/build/ansible-vault-password.txt` command facing the same error --Sowmithri On Monday, February 6, 2023 at 11:54:45 PM UTC+5:30 Matt Martz wrote: > The error pretty much explains it. That file seems to be a regular text > file, but has the execute bit s

Re: [ansible-project] Pass user inputs to bash script via ansible

2023-02-06 Thread Alex Wanderley
Hi, One possible way would be using "vars_prompt" to request the user's input and then pass that variable on as a parameter to your script in a "shell/command" task. Alex On Mon, Feb 6, 2023 at 11:36 AM Linux Study wrote: > Hi All, > > Is there way to pass user inputs to bash script via ansibl

[ansible-project] Pass user inputs to bash script via ansible

2023-02-06 Thread Linux Study
Hi All, Is there way to pass user inputs to bash script via ansible? Regards, Abhi -- 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

Re: [ansible-project] ERROR! Problem running vault password script /space/build/ansible-vault-password.txt ([Errno 8] Exec format error: '/space/build/ansible-vault-password.txt'). If this is not a sc

2023-02-06 Thread Matt Martz
The error pretty much explains it. That file seems to be a regular text file, but has the execute bit set. If the execute bit (permission) is applied to the file, it is treated as a script, and not a flat file to read the password from. In your case, it seems you need to run `chmod -x /space/buil

[ansible-project] ERROR! Problem running vault password script /space/build/ansible-vault-password.txt ([Errno 8] Exec format error: '/space/build/ansible-vault-password.txt'). If this is not a script

2023-02-06 Thread sowmithri d
Hello, Can any help me to fix this issue. I am facing an below error while executing ansible script ERROR! Problem running vault password script /space/build/ansible-vault-password.txt ([Errno 8] Exec format error: '/space/build/ansible-vault-password.txt'). If this is not a script, remove th

Re: [ansible-project] Re: error command not found in RHEL server and few are working

2023-02-06 Thread Nico Kadel-Garcia
On Mon, Feb 6, 2023 at 12:22 AM Lee Thomas Stephen wrote: > > The error message says > "/bin/sh: grouplnfo: command not found" > I is capitalized in groupInfo. > @Dick Visser was trying to point that out I think. There was a '%changelog" typo that only broke RHEL 8 based compilation. Do a "git pu