Running Python script via ansible
问题 I'm trying to run a python script from an ansible script. I would think this would be an easy thing to do, but I can't figure it out. I've got a project structure like this: playbook-folder roles stagecode files mypythonscript.py tasks main.yml release.yml I'm trying to run mypythonscript.py within a task in main.yml (which is a role used in release.yml). Here's the task: - name: run my script! command: ./roles/stagecode/files/mypythonscript.py args: chdir: /dir/to/be/run/in delegate_to: 127