Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
etc/ansible
usr/local
README.md
facts_to_s3.yml

README.md

Ansible facts to S3 bucket

[Credentials]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
  • Put the 'facts_to_s3.yml' file to your '/etc/ansible' directory. In this file you need to specify your hosts, for example we use servers with Name tags 'ansible_server'
    - hosts: tag_Name_ansible_server

Also you should to specify 'cron_user' and 's3_bucket' variables in this file.

    cron_user: root
    s3_bucket: some-bucket

cron_user will be used in your cron job for periodically update your facts on s3 bucket. Also your s3 bucket should contain 'ansible-facts' directory. Please note that 'cron_user' should have access to '.boto' file with credentials to your s3 bucket. Note: In case you're using the playbook for windows the next line (become: yes) needs to be commented out.

#become: yes
  • After that you will be able to run your playbook by the following command
ansible-playbook facts_to_s3.yml
You can’t perform that action at this time.