diff --git a/lib/ansible/modules/extras/cloud/lxc/lxc_container.py b/lib/ansible/modules/extras/cloud/lxc/lxc_container.py index ab207012329..50d3cedd596 100644 --- a/lib/ansible/modules/extras/cloud/lxc/lxc_container.py +++ b/lib/ansible/modules/extras/cloud/lxc/lxc_container.py @@ -571,7 +571,7 @@ def create_script(command): f.close() # Ensure the script is executable. - os.chmod(script_file, 1755) + os.chmod(script_file, 0700) # Get temporary directory. tempdir = tempfile.gettempdir()