Wed, 13 Apr 2016 13:17:45 -0400
fixup gui
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
1 | --- |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
8
diff
changeset
|
3 | - include: dist-debian.yml |
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
8
diff
changeset
|
4 | when: ansible_os_family == 'Debian' |
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
8
diff
changeset
|
5 | |
36
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
6 | - name: "ssh : Ensure known_hosts keys" |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
7 | lineinfile: |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
8 | dest: /etc/ssh/ssh_known_hosts |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
9 | state: present |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
10 | line: "{{item.value}}" |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
11 | create: true |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
12 | mode: 0644 |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
13 | with_dict: "{{hostkeys}}" |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
14 | tags: ssh |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
8
diff
changeset
|
15 | |
36
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
16 | - name: "ssh : Purge invalid known_hosts keys" |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
17 | lineinfile: |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
18 | dest: /etc/ssh/ssh_known_hosts |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
19 | state: absent |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
20 | line: "{{item.value}}" |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
21 | with_dict: "{{hostkeys_removed}}" |
745c6a77bf68
Move known_hosts stuff to system-wide / remove dotfiles from user role
Meredith Howard <mhoward@roomag.org>
parents:
17
diff
changeset
|
22 | tags: ssh |