geerlingguy / geerlingguy/ansible-for-devops
Drupal playbook: command and string folding
- Dominant language
- Python
- Stars
- 9.9k
- Forks
- 3.8k
- PR merge metrics
- No merged PRs in 30d
Description
The drupal playbook uses a syntax like this:
```
- name: Disable the default site.
command: >
a2dissite 000-default
removes=/etc/apache2/sites-enabled/000-default.conf
notify: restart apache
```
From the way I do interpret the YAML specs and the ansible documentation this would result in a command string of
` a2dissite 000-default removes=/etc/apache2/sites-enabled/000-default.conf`
eg combining all latter strings while the intent is to make `a2dissite 000-default` the command and `removes=` an ansible option
I'm not sure if I am missing something here, this "exploits" some side effect/undocumented features or that's a bug
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Drupal playbook and inspect the shown command task. Compare YAML folded-string behavior with Ansible's command module documentation, especially how `removes` is interpreted. Done means the playbook clearly expresses the intended command and Ansible option, with the behavior confirmed against the documented syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100