community.general/lib/ansible/modules
Sam Thursfield cad0adc691 Fix permissions issue with 'cron' module
I have a task like this in a playbook. The ansible_ssh_user is 'root'
for this host.

    - cron:
        hour: 00
        job: /home/backup/backup.sh
        name: baserock.org data backup
        user: backup

Running it gave me the following error:

    TASK: [backup cron job, runs every day at midnight] ***************************
    failed: [baserock-backup1] => {"failed": true}
    msg: crontab: can't open '/tmp/crontabvVjoZe': Permission denied
    crontab: user backup cannot read /tmp/crontabvVjoZe

The temporary file created by the 'cron' module is created with the
Python tempfile.mkstemp() function. This creates a file that is readable
only by 'root' (mode 600). The Busybox `crontab` program then checks if
the file is readable by the 'backup' user, and fails if it isn't. So we
need to make sure the file is world-readable before running `crontab`.
2016-12-08 11:23:28 -05:00
..
cloud Fixes #542 error when ec2_asg arguments aren't specified 2016-12-08 11:23:28 -05:00
commands returned version added 2016-12-08 11:23:27 -05:00
database Fix login_user on mysql_user 2016-12-08 11:23:24 -05:00
files Add recursive support for ACL module (fix #5053, fix #5550, fix #7276) 2016-12-08 11:23:28 -05:00
inventory Add missing GPLv3 License header 2016-12-08 11:23:25 -05:00
network Allow additional hashing algorithms. Directly use hashlib and check if used algorithm is supported. 2016-12-08 11:23:28 -05:00
packaging fix error occurring with Debian 2016-12-08 11:23:27 -05:00
source_control update git remote url before ls-remote 2016-12-08 11:23:28 -05:00
system Fix permissions issue with 'cron' module 2016-12-08 11:23:28 -05:00
utilities Add missing GPLv3 License header 2016-12-08 11:23:25 -05:00
web_infrastructure fixed 'present' 2016-12-08 11:23:25 -05:00
windows Fix windows feature example to actually install IIS 2016-12-08 11:23:27 -05:00
__init__.py package files 2016-12-08 11:22:22 -05:00
CONTRIBUTING.md Add new policy guidelines for Core 2016-12-08 11:23:24 -05:00
COPYING Moving snapshot of modules back from core 2016-12-08 11:21:46 -05:00
README.md updated to keep same info as in extras repo 2016-12-08 11:22:47 -05:00
test-docs.sh Add testing of docs to the core repo 2016-12-08 11:23:14 -05:00

ansible-modules-core

This repo contains Ansible's most popular modules that are shipped with Ansible.

New module submissions for modules that do not yet exist should be submitted to ansible-modules-extras, rather than this repo.

Take care to submit tickets to the appropriate repo where modules are contained. The docs.ansible.com website indicates this at the bottom of each module documentation page.

Reporting bugs

Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of module documentation page at docs.ansible.com.

Testing modules

Ansible module development guide contains the latest info about that.

License

As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.

Installation

There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.