Old ansible configuration for servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 768B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. - name: install git
  3. apt: pkg=git
  4. tags: [ds-tools]
  5. - name: install dependencies
  6. apt: pkg={{item}}
  7. with_items:
  8. - libxml2-dev
  9. - libxslt1-dev
  10. - zlib1g-dev
  11. - xvfb
  12. tags: [ds-tools]
  13. - name: clone git repository
  14. git: accept_hostkey=yes
  15. dest={{ ds_dir }}
  16. repo=git@github.com:csmith/duty-sheet-reports.git
  17. tags: [ds-tools]
  18. - name: chown checked out files
  19. file: owner={{ ds_user }}
  20. group={{ ds_user }}
  21. path={{ ds_dir }}
  22. recurse=true
  23. tags: [ds-tools]
  24. - name: install python dependencies
  25. pip: requirements={{ ds_dir }}/requirements.txt
  26. tags: [ds-tools]
  27. - name: create config file
  28. template:
  29. src: config.yml
  30. dest: "{{ ds_dir }}/config.yml"
  31. owner: "{{ ds_user }}"
  32. tags: [ds-tools]