Skip to content

okchaty/common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role Common

Build Status Ansible Galaxy GitHub issues Average time to resolve an issue Percentage of issues still open GitHub license

Version:0.3.1
Web:https://github.com/okchaty/common
Download:http://github.com/okchaty/common
Source:http://github.com/okchaty/common
Keywords:common

List of applications:

Install it with the following command:

$ ansible-galaxy install okchaty.common

The default role variables in defaults/main.yml are:

common_pip_packages:
    - name: celery
    version: 4.0.2
common_packages:
    - python
    - git
  • Env Vars:
common_env_vars:
    var1:value 1
    var2:value 2
  • user:
common_user: ubuntu
  • Deploy code
common_only_deploy: yes

None

See the examples directory.

To run this playbook with default settings, create a basic playbook like this:

- hosts: servers
  roles:
    - okchaty.common

To install a specific version:

- hosts: servers
  roles:
    - { role: okchaty.common }
- hosts: servers
  roles:
     - role: okchaty.common
        common_package_dependencies:
        - vim

Add: users to group:

- hosts: servers
  roles:
     - role: okchaty.common
        common_users:
        - user: test
          group: test-group

Add: files to server:

common_user = "{{ user}}"
common_copy_files:
  - src: /usr/src/file
    path: /usr/src/server/file
    permissions: 0640

MIT

Please see CHANGELOG for more information what has changed recently.

Please see CONTRIBUTING for details.

Made with ❤️ ☕ and 🍕 by author and company.