ansible regex arugments
Hi all,
I am looking for some help with regex generator, as ansible uses python regex. Is there any way that i could generate it on online. I also wanted the ansible to prompt for interactions(questions) when running a particular task and below is my code. ERROR! conflicting action statements: command, prompt Looking for some suggestions. Code:
- name: install |
Quote:
Quote:
https://www.linuxquestions.org/quest...le-4175712393/ Post a clear question with clear errors/messages, and we can try to help. |
Quote:
Or it’s easier to do it with bash .. and then call script via ansible. |
Quote:
https://docs.ansible.com/ansible/lat...%20flexibility. And you couldn't find it?? Even after two years experience with Ansible? |
Quote:
|
Quote:
Your question was read, and you asked how to get an ansible playbook to ask questions/prompt users. You have been working with ansible for a good while, and claimed to have looked for solutions in the documentation, and the answer to your question was in what you claimed to look at. Which is how to get interactive prompts. You were also asked to clarify things, since (again) your question was unclear. Not sure how python or regex fits into any of this, when you can use ansible native to prompt users for things, but you never clarified. So, read the docs and follow them. Use your knowledge and experience. |
Quote:
https://docs.python.org/3/library/re.html https://www.guru99.com/python-regula...-tutorial.html https://www.geeksforgeeks.org/python-regex/ |
Look, 1s440. We don't mean to give you a hard time. It's just that no-one can tell what you're actually asking for.
|
Quote:
|
Quote:
I clearly quoted "command " and "prompt" together doesn't work. In the ansible documentation they dont have option to use "command" but just prompting questions and answer. Code:
vars_prompt: Code:
- name: my_password2 And its clear ansible doesnot have option like this hence closing this case |
Quote:
From Ansible docs: https://docs.ansible.com/ansible/lat...pt_module.html https://docs.ansible.com/ansible/lat...ll_module.html So between the three things looked up for you, you can:
|
Code:
- name: Install software |
Quote:
|
Quote:
https://docs.ansible.com/ansible/lat...ct_module.html . |
All times are GMT -5. The time now is 09:54 AM. |