Skip to content

Commit

Permalink
pip upgradeタスクを同時に実行せずに、1台ずつ実行するように修正 (#111)
Browse files Browse the repository at this point in the history
* pip upgradeタスクを同時に実行せずに、1台ずつ実行するように修正

* throttleオプションを他のタスクにも追加

---------

Co-authored-by: yoshihiro nigauri <yoshihiro_nigauri@nigauri-MacBookAir.local>
  • Loading branch information
y-nigauri and yoshihiro nigauri committed Aug 10, 2023
1 parent 30757c2 commit 09794c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions hive_builder/playbooks/roles/docker-client/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- six
state: present
virtualenv: "{{ hive_home_dir }}/docker"
throttle: 1
- name: install utility comnand
template:
dest: /usr/bin/{{ item }}
Expand Down
4 changes: 3 additions & 1 deletion hive_builder/playbooks/roles/pip-venv/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
- setuptools
- wheel
virtualenv: "{{ hive_home_dir }}/docker"
virtualenv_command: python3 -m venv
virtualenv_command: "python{{ hive_safe_python_revision }} -m venv"
# hive-builder does not require libselinux module,
# but inherit system site-pacakges for addon which requires libselinux module
virtualenv_site_packages: "{{ hive_safe_need_libselinux }}"
extra_args: --disable-pip-version-check
state: latest
args:
chdir: "{{ hive_home_dir }}"
throttle: 1
- name: install python-dxf
become: False
pip:
Expand All @@ -49,6 +50,7 @@
virtualenv: "{{ hive_home_dir }}/docker"
args:
chdir: "{{ hive_home_dir }}"
throttle: 1
- name: setup auto enter virtualenv at login
become: False
lineinfile:
Expand Down
4 changes: 3 additions & 1 deletion hive_builder/playbooks/roles/zabbix-agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- wheel
virtualenv: /var/lib/zabbix/docker
# virtualenv_python: "{{ hive_safe_python_command }}"
virtualenv_command: python3 -m venv
virtualenv_command: "python{{ hive_safe_python_revision }} -m venv"
# hive-builder does not require libselinux module,
# but inherit system site-pacakges for addon which requires libselinux module
virtualenv_site_packages: "{{ hive_safe_need_libselinux }}"
Expand All @@ -48,6 +48,7 @@
chdir: /var/lib/zabbix
vars:
ansible_python_interpreter: "{{ '/usr/bin/python' if ansible_distribution == 'Amazon' else '/usr/libexec/platform-python' }}"
throttle: 1
- name: install python pacages for zabbix
become_user: zabbix
pip:
Expand All @@ -62,6 +63,7 @@
chdir: /var/lib/zabbix
vars:
ansible_python_interpreter: "{{ '/usr/bin/python' if ansible_distribution == 'Amazon' else '/usr/libexec/platform-python' }}"
throttle: 1
- name: "setup tls connection - put ca certs"
copy:
src: "{{ hive_safe_ca_dir }}/cacert.pem"
Expand Down

0 comments on commit 09794c9

Please sign in to comment.