1 shell module is used to set the password of mysql, but it is always prompted to fail 2, the code is as follows: - name: Create mysql user user: name: mysql create_home: no shell: sbin nologin - name: Download mysql get_url: u...
problem description how to develop filter plug-ins for ansible with golang? The module can be developed in go, and the filter plug-in doesn t know if it works. the platform version of the problem and what methods you have tried python always has...
We have a system that allows you to execute commands from customer post, call ansible api to execute commands on remote systems, should be limited to query commands, such as ps -ef | grep java | rm somefile netstat -anpt | grep 1234 | pkill someproce...
the following is the ansible api section: import json import shutil from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars.manager import VariableManager from ansible.inventory.manager import InventoryMan...
- name: start container docker_container: name: "{{ warinfo[warname][ container ] }}" image: "{{ warinfo[warname][ image ] }}" state: started ports: - "{{ item[0]}}:{{ item[1] }}" with_items: ...
I have been using python3 + flask, before. I recently watched a project video of Django. There are all kinds of problems in configuring the environment when python2.7 uses django on win10. There are problems in installing mysql-python and ansible packag...
there are some system or software installation scripts in stock. In the process of execution, prompt, often needs to manually confirm yes or no before continuing to execute, ansible playbook. How to deal with these scripts? do you have to modify the scri...
when we use the ansible tool, the default is to use ssh for remote control. you need to generate key pairs in a way similar to ssh-keygen-t rsa , and then use the ssh-copy-id command to distribute the public key file to a remote host and enter the pas...