Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 1 | --- |
| 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 |
alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 13 | tags: [common] |
| 14 | |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 15 | - name: Installing basic packages |
alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 16 | apt: |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 17 | name: "{{ item }}" |
alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 18 | force: yes |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 19 | with_items: "{{ basic_packages }}" |
alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 20 | tags: [common] |
| 21 | |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 22 | - name: Installing python3-lxc |
alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 23 | pip: |
| 24 | name: lxc-python2 |
| 25 | state: present |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 26 | tags: [common] |