-
Notifications
You must be signed in to change notification settings - Fork 0
/
distr_yandex_browser_beta_debian11.yml
63 lines (51 loc) · 2.01 KB
/
distr_yandex_browser_beta_debian11.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
- name: '!!! x86_64 Arch only !!! Ansible script for Debian 11+, to setup Yandex Browser (probably beta version), and configure it.'
hosts: "{{ variable_host | default('localhost') }}"
become_user: '{{ name_of_user }}'
become_method: 'sudo'
vars:
list_soft:
- yandex-browser-stable
list_repository:
- deb [arch=amd64 signed-by={{ path_to_key }}{{ name_of_key }}] http://repo.yandex.ru/yandex-browser/deb stable main
- deb [arch=amd64 signed-by={{ path_to_key }}{{ name_of_key }}] http://repo.yandex.ru/yandex-browser/deb beta main
path_to_key: '/etc/apt/trusted.gpg.d/'
name_of_key: 'yandex.gpg.gpg'
vars_prompt:
- name: name_of_user
prompt: "Enter the user name with root privelege \n"
private: no
default: root
tasks:
# - name: Add GPG key for Yandex repository
# get_url:
# url: https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG
# dest: "{{ path_to_key }}{{ name_of_key }}"
# mode: u+rw,g+r,o+r
# become: yes
- name: Add GPG key for Yandex repository
ansible.builtin.apt_key:
url: https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG
keyring: "{{ path_to_key }}{{ name_of_key }}"
state: present
become: yes
- name: 'Convert gpg Yandex key in new standart yandex.gpg -> yandex.gpg.gpg'
shell: 'gpg --dearmor {{ path_to_key }}{{ name_of_key }}'
become: yes
- name: 'Replayse non function key yandex.gpg.gpg on yandex.gpg'
shell: 'cp {{ path_to_key }}{{ name_of_key }}.gpg {{ path_to_key }}{{ name_of_key }}'
become: yes
- name: Add Yandex repository
ansible.builtin.apt_repository:
repo: "{{ item }}"
state: present
become: yes
with_list: "{{ list_repository }}"
- name: Install the necessary packages
apt:
update_cache: yes
pkg: '{{ list_soft }}'
state: present
become: yes
# make some config ....
# - name: Add shotcut on pannel (if distr - xfce) + add new icon Yandex