Skip to content

Commit

Permalink
Finish ooni-data deployment ansible playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 30, 2024
1 parent 1c51d03 commit 987a2e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ansible/playbook-bootstrap.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# This playbook is to be run on hosts that don't support bootstrapping the base
# OS setup with something other than ansible (eg. cloud-init)
- name: Ensure ssh_users are synched on all hosts
- name: Bootstrap the ssh_users on target host
hosts: all
#remote_user: root
become: yes
remote_user: root
roles:
- bootstrap
- ssh_users
7 changes: 6 additions & 1 deletion ansible/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
- name: Ensure all hosts are bootstrapped correctly
hosts: all
become: root
roles:
- bootstrap

- name: ClickHouse servers
hosts: clickhouse_servers
user: admin
Expand Down Expand Up @@ -41,7 +47,6 @@
become: true
roles:
- oonidata

# commented out due to the fact it requires manual config of ~/.ssh/config
#- name: Setup codesign box
# hosts: codesign-box
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/bootstrap/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- ansible.builtin.include_role:
name: ssh_users
tags:
- ssh_users

- name: Set the hostname to inventory_hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
Expand Down

0 comments on commit 987a2e9

Please sign in to comment.