30 lines
727 B
YAML
30 lines
727 B
YAML
---
|
|
- name: Install Git and Python
|
|
hosts: All_server
|
|
become: yes # برای اجرای دستورات با دسترسی ریشه
|
|
tasks:
|
|
- name: Update all packages
|
|
zypper:
|
|
name: '*'
|
|
state: latest
|
|
|
|
- name: Install Git
|
|
zypper:
|
|
name: git
|
|
state: present
|
|
|
|
- name: Install Python
|
|
zypper:
|
|
name: python311
|
|
state: present
|
|
|
|
- name: Install libgthread-2.0-0
|
|
zypper:
|
|
name: libgthread-2_0-0
|
|
state: present
|
|
|
|
- name: Symlink /usr/local/bin/python to python3.11
|
|
become: yes
|
|
ansible.builtin.command:
|
|
cmd: ln -sfn /usr/bin/python3.11 /usr/local/bin/python
|
|
creates: /usr/local/bin/python |