我正面临一个问题与AWX塔的实例。
我在上面有一个项目和作业模板,作业模板连接到正在运行的Ansible控制节点(RedHatEnterpriseLinuxServerRelease7.9 (Maipo)),其中执行了几本剧本。
在其中一本剧本中,我使用了以下任务:
- name: Filter with json_query the list of current assigned policies of the LDAP user as string separated by comma
set_fact: ldap_policy_response: "{{ ldap_user
我使用ansible os_keypair模块通过AWX对Openstack创建一个新的键区:
- hosts: localhost
tasks:
- name: Create new keypair, ask for the name in survey
os_keypair:
cloud: rhosp
state: present
name: "{{ survey_keypair_name }}"
register: result
- name: Show only private key to copy
我想导入现有的库存,我以前使用过的Ansible (独立的),包括group_vars和金库文件到Ansible (3.2.0)。
但是,一旦Vault文件发挥作用,它似乎就不起作用了。一旦我设置了Vault密码文件凭证并使用源类型“来源于一个项目”创建库存--我无法在“源详细信息”下选择Vault凭据。
📷
当我手动将其放入并保存源时,同步会因以下错误而失败:
1.735 INFO Updating inventory 10: TEST
1.753 DEBUG Using system install of ansible-inventory CLI: /usr/bi
我打算使用api在AWX上启动ansible作业,并从ansible剧本中得到一个电话,以了解该游戏的结果。
要做到这一点,我将使用带有一些/api/v2/job_templates/<job-template-id>/launch/的extra_vars将参数传递给我的play。
{
"extra_vars": {
"target": "w.x.y.z", (put here a real IP)
"directory_name_1": "dir1",
我在GitLab中有一个可分析的项目,通过GitLab CI Runner按计划运行playbook。
我想把playbook的执行从runner移动到AWX (Ansible to )。AWX支持在GitLab中通过webhook触发作业模板,但在GitLab中我找不到一种通过调度触发webhook的方法。
有没有办法在GitLab CI中按计划触发webhhok?
我正在尝试使用跳转/堡垒主机连接到私有子网中的其他主机。我得到以下错误:
{
"msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying e
我有一个在本地运行非常好的剧本,当尝试使用AWX运行时,我遇到了一个错误,似乎表明不支持任务中的设备类型。
Loading collection ansible.netcommon from /runner/requirements_collections/ansible_collections/ansible/netcommon
Loading callback plugin awx_display of type stdout, v2.0 from /usr/local/lib/python3.8/site-packages/ansible_runner/callbacks/awx_dis
我已经成功地将Ansible to项目配置为从远程git存储库拉取,并使用ssh和存储的凭证(密钥)从本地存储库拉取。在这台服务器上,允许ssh登录访问git是不可接受的,因此我尝试将Ansible to配置为使用本地git存储库;不使用git:或ssh:协议进行访问,只通过file:///path/to/AnsibleTower.git访问它。
Ansible to project-update函数试图'git clone',但它给出了一个错误:
"fatal: Could not read from remote repository.",