This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_ansible [2023/03/17 16:49] val [Пример 2] |
сервис_ansible [2023/03/20 19:02] val [ansible-pull] |
||
---|---|---|---|
Line 629: | Line 629: | ||
* [[https://medium.com/splunkuserdeveloperadministrator/using-ansible-pull-in-ansible-projects-ac04466643e8|Using Ansible Pull In Ansible Projects]] | * [[https://medium.com/splunkuserdeveloperadministrator/using-ansible-pull-in-ansible-projects-ac04466643e8|Using Ansible Pull In Ansible Projects]] | ||
* [[Инсталяция системы в конфигурации Desktop]] | * [[Инсталяция системы в конфигурации Desktop]] | ||
+ | * [[Переменные окружения]] | ||
=== Вариант 1 === | === Вариант 1 === | ||
<code> | <code> | ||
- | client2:~/ansible-pull-gpo# cat thunderbird/tasks/main.yml | + | client1:~/ansible-pull-gpo# cat thunderbird/tasks/main.yml |
</code><code> | </code><code> | ||
- name: Install Thunderbird | - name: Install Thunderbird | ||
apt: pkg=thunderbird state=present update_cache=true | apt: pkg=thunderbird state=present update_cache=true | ||
</code><code> | </code><code> | ||
- | client2:~/ansible-pull-gpo# cat proxy/files/etc/environment | + | client1:~/ansible-pull-gpo# cat proxy/files/etc/environment |
</code><code> | </code><code> | ||
- | http_proxy=http://gate.corp13.un:3128 | + | #http_proxy=http://gate.corpX.un:3128 |
- | https_proxy=http://gate.corp13.un:3128 | + | https_proxy=http://gate.corpX.un:3128 |
- | no_proxy=localhost,127.0.0.1,isp.un,corp13.un | + | no_proxy=localhost,127.0.0.1,isp.un,corpX.un |
</code><code> | </code><code> | ||
- | client2:~/ansible-pull-gpo# cat proxy/tasks/main.yml | + | client1:~/ansible-pull-gpo# cat proxy/tasks/main.yml |
</code><code> | </code><code> | ||
- name: Copy file environment | - name: Copy file environment | ||
Line 651: | Line 652: | ||
dest: /etc/environment | dest: /etc/environment | ||
</code><code> | </code><code> | ||
- | client2:~/ansible-pull-gpo# cat local.yml | + | client1:~/ansible-pull-gpo# cat local.yml |
</code><code> | </code><code> | ||
- hosts: localhost | - hosts: localhost | ||
Line 657: | Line 658: | ||
- role: proxy | - role: proxy | ||
- role: thunderbird | - role: thunderbird | ||
+ | </code> | ||
+ | |||
+ | * [[Инструмент GitLab]] (Создать публичный проект без readme и скопировать подсказки) | ||
+ | |||
+ | <code> | ||
+ | client3:~# ansible-pull -U http://gate.corp13.un/user1/ansible-pull-gpo.git | ||
</code> | </code> | ||
Line 662: | Line 669: | ||
<code> | <code> | ||
- | client2:~/ansible-pull-gpo# cat start.sh | + | client1:~/ansible-pull-gpo# cat start.sh |
</code><code> | </code><code> | ||
echo -e "0 */2 * * * \ | echo -e "0 */2 * * * \ |