blob: c9d4dc51dc8b7f7bcab9e1a31c3bd61891f3b7dd [file] [log] [blame]
Luca Prete8d4e8bc2016-08-24 14:49:54 -07001---
2#
3# Performs basic tasks to prepare the dev environment, such as managing the default user
4# credentials, installing the basic packages, assigning host names.
5#
6- name: Setting password ubuntu and ssh key for user ubuntu
7 user:
8 name: ubuntu
9 password: $6$rounds=656000$UcEQn7gcdsZCqt6m$HifWVYa6XXX5rpbAqkGj2mJfrIm9iT2AN2fbQbJNLcRr10SwhQgTQVnVqY8UGSQsD14WlFCdNCmJDay3CPlUR0
10 generate_ssh_key: yes
11 ssh_key_bits: 2048
12 ssh_key_file: .ssh/id_rsa
alshabib4997cd72016-05-24 22:48:29 -070013 tags: [common]
14
Luca Prete8d4e8bc2016-08-24 14:49:54 -070015- name: Installing basic packages
alshabib4997cd72016-05-24 22:48:29 -070016 apt:
Luca Prete8d4e8bc2016-08-24 14:49:54 -070017 name: "{{ item }}"
alshabib4997cd72016-05-24 22:48:29 -070018 force: yes
Luca Prete8d4e8bc2016-08-24 14:49:54 -070019 with_items: "{{ basic_packages }}"
alshabib4997cd72016-05-24 22:48:29 -070020 tags: [common]
21
Luca Prete8d4e8bc2016-08-24 14:49:54 -070022- name: Installing python3-lxc
alshabib4997cd72016-05-24 22:48:29 -070023 pip:
24 name: lxc-python2
25 state: present
Luca Prete8d4e8bc2016-08-24 14:49:54 -070026 tags: [common]