srcs
This commit is contained in:
parent
2c8998aeb4
commit
f63af45d10
81 changed files with 7849 additions and 218 deletions
|
@ -7,12 +7,13 @@
|
|||
verbosity: 1
|
||||
msg: "toxcore main.yml BOX_OS_FAMILY={{BOX_OS_FAMILY}} {{BOX_GENTOO_FROM_MP}} {{ansible_virtualization_role|replace('NA', 'host')}}"
|
||||
|
||||
- name: toxcore include_vars
|
||||
- name: include toxcore by-platform vars
|
||||
include_vars: "{{item}}.yml"
|
||||
with_items:
|
||||
- Linux
|
||||
- "{{ ansible_distribution }}{{ ansible_distribution_major_version }}"
|
||||
tags: always
|
||||
check_mode: false
|
||||
|
||||
- name: "rsync toxcore root_overlay"
|
||||
synchronize:
|
||||
|
@ -113,7 +114,7 @@
|
|||
groups: "{{ item.1 }}"
|
||||
when:
|
||||
- item != ''
|
||||
- "len(toxcore_system_users) > 0"
|
||||
- "toxcore_system_users != []"
|
||||
# some groups may not be there
|
||||
ignore_errors: true
|
||||
with_nested:
|
||||
|
@ -183,8 +184,9 @@
|
|||
|
||||
- name: install toxcore pips HOST
|
||||
environment: "{{ portage_proxy_env }}"
|
||||
become_user: "{{ BOX_USER_NAME }}"
|
||||
shell: |
|
||||
sudo -u "{{ BOX_USER_NAME }}" \
|
||||
# sudo -u "{{ BOX_USER_NAME }}"
|
||||
pip3.sh install {{' '.join(toxcore_pips3_inst_host if ansible_virtualization_role|replace('NA', 'host') == 'host' else toxcore_pips3_inst_guest)}}
|
||||
ignore_errors: "{{ BASE_PKG_IGNORE_ERRORS }}"
|
||||
when:
|
||||
|
@ -222,6 +224,7 @@
|
|||
loop_control:
|
||||
loop_var: LOOP_USER_F
|
||||
|
||||
# broken rc-update: service `qemu-quest-agent' does not exist
|
||||
- name: enable and start toxcore services
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
|
@ -259,7 +262,7 @@
|
|||
|
||||
# this should not run as root
|
||||
- name: "usr_local_toxcore.bash"
|
||||
become_user: "{{ LOOP_USER_F[0] }}"
|
||||
become_user: "{{ BOX_USER_NAME }}"
|
||||
environment: "{{ shell_proxy_env }}"
|
||||
shell: |
|
||||
umask 0002
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue