diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-01 00:26:13 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-01 00:26:13 +0200 |
commit | a89e16c44ee6d038e4f4cf435902e66558cc5cf4 (patch) | |
tree | 745201ec1b6b2e6f5239cf4feaf790fb4a138654 /roles/my_workspace/tasks | |
parent | apt: don't remove after autoremoving dependencies (diff) | |
download | infra-ansible-a89e16c44ee6d038e4f4cf435902e66558cc5cf4.tar.gz infra-ansible-a89e16c44ee6d038e4f4cf435902e66558cc5cf4.zip |
sort module args, add missing state args, etc.
Diffstat (limited to '')
-rw-r--r-- | roles/my_workspace/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/my_workspace/tasks/project.yml | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/roles/my_workspace/tasks/main.yml b/roles/my_workspace/tasks/main.yml index 48af77b..81344c3 100644 --- a/roles/my_workspace/tasks/main.yml +++ b/roles/my_workspace/tasks/main.yml @@ -13,6 +13,8 @@ name: - git - make + state: present + install_recommends: false - name: Configure git block: diff --git a/roles/my_workspace/tasks/project.yml b/roles/my_workspace/tasks/project.yml index 276d10b..c0f652c 100644 --- a/roles/my_workspace/tasks/project.yml +++ b/roles/my_workspace/tasks/project.yml @@ -6,9 +6,9 @@ block: - name: 'Update repository: {{ project_name }}' ansible.builtin.git: - accept_hostkey: true - dest: '{{ project_dir }}' repo: '{{ project_url }}' + dest: '{{ project_dir }}' + accept_hostkey: true - name: Check for Makefile ansible.builtin.file: @@ -33,9 +33,9 @@ - name: Run docker-compose become: true community.docker.docker_compose: - build: true - debug: true project_src: '{{ project_dir }}' pull: true + build: true remove_orphans: true + debug: true when: makefile_check is not succeeded and docker_compose_check is succeeded |