Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ability do distinguish the explicit block on the graph #86

Merged
merged 1 commit into from
Sep 26, 2021

Conversation

haidaraM
Copy link
Owner

Fix #14

@haidaraM haidaraM force-pushed the feat/distinguishBlock branch 4 times, most recently from d118570 to 498f1db Compare September 24, 2021 23:35
@coveralls
Copy link

coveralls commented Sep 26, 2021

Coverage Status

Coverage increased (+0.1%) to 94.694% when pulling c6fdd30 on feat/distinguishBlock into 9a0fdec on main.

@haidaraM haidaraM marked this pull request as ready for review September 26, 2021 14:27
@haidaraM
Copy link
Owner Author

haidaraM commented Sep 26, 2021

---
- hosts: all
  tasks:
    - name: Install tree
      yum:
        name: tree
    - name: Install Apache
      when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "6")
      block:
        - name: Install some packages
          yum:
            name: "{{ item }}"
            state: installed
          with_items:
            - httpd
            - memcached
        - template:
            src: templates/src.j2
            dest: /etc/foo.conf
        - block:
            - get_url: url={{ remote_database_dump }} dest={{ local_database_dump }}
              when: "True"
            - command: pg_restore -d {{ dbname }} {{ local_database_dump }}
        - service:
            name: bar
            state: started
            enabled: True
  post_tasks:
    - name: Debug
      debug:
        msg: "Debug 1"

Capture d’écran 2021-09-26 à 18 16 33

@haidaraM haidaraM merged commit 77d3f2b into main Sep 26, 2021
@haidaraM haidaraM deleted the feat/distinguishBlock branch September 26, 2021 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for block within playbook
2 participants