Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dancorrigan1 committed Nov 27, 2024
1 parent 1fbe049 commit d771e26
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions tasks/dailyconnections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,30 @@
{%- endfor -%}
{{ __unique_user_ips }}
- name: "Daily Connections | Include User IPs task file"
ansible.builtin.include_tasks:
file: userips.yml
loop: '{{ __unique_user_ips }}'
- name: "User IPs | Ensure user_ips directory exists"
ansible.builtin.file:
path: "{{ role_iptvservice__iptv_logs_path }}/user_ips"
state: directory
mode: '0750'

- name: "User IPs | Add IPs to user IP file"
ansible.builtin.lineinfile:
path: '{{ role_iptvservice__iptv_logs_path }}/user_ips/{{ item.user }}'
line: '{{ item.1 }}'
state: present
create: true
mode: '0644'
register: __add_ip
loop: "{{ __unique_user_ips | subelements('ip_list') }}"
loop_control:
label: >-
Adding '{{ item.1 }}' to IP user file for '{{ item.0.user }}'
- meta: end_play

Check failure on line 161 in tasks/dailyconnections.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (meta).

Check failure on line 161 in tasks/dailyconnections.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

name[missing]

All tasks should be named.
# - name: "Daily Connections | Include User IPs task file"
# ansible.builtin.include_tasks:
# file: userips.yml
# loop: '{{ __unique_user_ips }}'

- name: "Daily Connections | Create list of IP Info"
ansible.builtin.set_fact:
Expand Down

0 comments on commit d771e26

Please sign in to comment.