Skip to content

Base ansible role. Tested on ubuntu 16.04 and ansible 2.2.1.

Notifications You must be signed in to change notification settings

Kroid/ansible-common-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kroid/ansible-common-role

Base role for everything:

  • install python2
  • install common packages
  • add public ssh keys
  • config ssh, hostname, locale
  • sudo without password

Tested on ubuntu 16.04 and ansible 2.2.1.

Installation

  1. Create an requirements.yml file:
---
- src: https://github.com/Kroid/ansible-common-role.git
  1. Install requirements:
ansible-galaxy install -r requirements.yml
  1. Change authorized_key_urls variable.
  2. Define host_name variable.

Tips

  • The role requires gather_facts: False in playbook:
- hosts: all
  gather_facts: False
  roles:
    - ansible-common-role
  • example ansible.cfg:
[defaults]
retry_files_enabled = False
roles_path = roles

About

Base ansible role. Tested on ubuntu 16.04 and ansible 2.2.1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published