AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
I'm using a playbook to create a file on my remote server. However, file creation is not happening. When I use the command option within Inventories-->Host, it works. But file creation doest happen when using template/playbook.
ENVIRONMENT
AWX version: 7.0.0.0
AWX install method: docker on linux,
Ansible version: 2.8.4
STEPS TO REPRODUCE
Run the playbook.
- name: Create test file
hosts: controller
gather_facts: False
tasks:
- name: Creating test file
file:
path: $HOME/github.yaml
state: touch
EXPECTED RESULTS
The test file to be created in controller hosts.
ACTUAL RESULTS
File is not created. Running locally works. Also this works if I try Run Command option available under Inventory > Hosts
ADDITIONAL INFORMATION
This is the output I get upon running the template
ISSUE TYPE
SUMMARY
I'm using a playbook to create a file on my remote server. However, file creation is not happening. When I use the command option within Inventories-->Host, it works. But file creation doest happen when using template/playbook.
ENVIRONMENT
STEPS TO REPRODUCE
Run the playbook.
EXPECTED RESULTS
The test file to be created in controller hosts.
ACTUAL RESULTS
File is not created. Running locally works. Also this works if I try Run Command option available under Inventory > Hosts
ADDITIONAL INFORMATION
This is the output I get upon running the template