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

Allow handling permissions with settings.is_public and settings.admin #4

Open
ketsapiwiq opened this issue Nov 18, 2021 · 0 comments
Open

Comments

@ketsapiwiq
Copy link
Owner

Right now we can use permissions like this:

- name: Public app
  ynh_app:
    name: dokuwiki
    permissions:
      - visitors
      - all_users
- name: Private app
  ynh_app:
    name: dokuwiki
 # default value is append: no
    # append: no
    permissions:
      - admin_username

But we should be able to also do:

In my playbook:

  - name: Install apps (LOOP)
    ynh_app:
      name: "{{ item.name }}"
      label: "{{ item.label }}"
      domain: "{{ item.domain }}"
      settings:
          path: "{{ item.path }}"
          is_public: "{{ item.is_public }}"
          admin: "{{ item.admin }}"
    loop: "{{ ynh_app_test }}"

In my var file:

---
ynh_app_test:
  - name: 20euros
    label: Money
    domain: poclydra.fr
    path: /20euros
    is_public: 0
    admin:

  - name: alltube
    label: yt_dl
    domain: poclydra.fr
    path: /yt_dl
    is_public: 1
    admin:
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

No branches or pull requests

1 participant