<p dir="auto">Seems that zypper_repository is not idempotent as expected. Running a zypper_repository task multiple times gives:</p>
<p dir="auto">"Repository named 'reponame' already exists. Please use another alias."</p>
<p dir="auto">P.S.: I'm aware that the error can be bypassed with ignore_errors: yes</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">include_tasks:</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-2.4.0-100.git201708150932.e9c9473819.devel.el7.centos
ansible-2.4.0.0-100.git201709151233.91e1a5fe16.stable24.el7.centos
ansible-2.5.0-100.git201709201920.131d417c7a.devel.el7.centos"><pre class="notranslate"><code class="notranslate">ansible-2.4.0-100.git201708150932.e9c9473819.devel.el7.centos
ansible-2.4.0.0-100.git201709151233.91e1a5fe16.stable24.el7.centos
ansible-2.5.0-100.git201709201920.131d417c7a.devel.el7.centos
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
timeout                 = 120
roles_path              = ./core/roles
remote_user             = ansible
remote_port             = 48022
ansible_become          = yes
become                  = yes
become_user             = root
forks                   = 100
log_path                = ./logs/ansible.log
#inventory               = inventory/
host_key_checking       = False
retry_files_enabled     = True

callback_plugins        = plugins
stdout_callback         = actionable

[paramiko_connection]
record_host_keys        = False

[ssh_connection]
ssh_args                = -o ControlMaster=auto -o ControlPersist=600s -o UserKnownHostsFile=/dev/null
pipelining              = True
control_path            = /tmp/ansible-ssh-%%h-%%p-%%r
"><pre class="notranslate"><code class="notranslate">[defaults]
timeout                 = 120
roles_path              = ./core/roles
remote_user             = ansible
remote_port             = 48022
ansible_become          = yes
become                  = yes
become_user             = root
forks                   = 100
log_path                = ./logs/ansible.log
#inventory               = inventory/
host_key_checking       = False
retry_files_enabled     = True

callback_plugins        = plugins
stdout_callback         = actionable

[paramiko_connection]
record_host_keys        = False

[ssh_connection]
ssh_args                = -o ControlMaster=auto -o ControlPersist=600s -o UserKnownHostsFile=/dev/null
pipelining              = True
control_path            = /tmp/ansible-ssh-%%h-%%p-%%r

</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Centos7</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Try to change all include: in my playbook to include_tasks:<br>
77 include: changed to include_tasks:</p>
<p dir="auto">and i get very very slowed playbook<br>
playbook with include: runned 6 min<br>
playbook with include_tasks: runned 28 min, and earn all 64 Gb RAM memory on server<br>
OOM killed other procecces !<br>
and finnaly in log<br>
ERROR! A worker was found in a dead state</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">play playbook with lot of include_tasks:</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">playbook with include_tasks: runned 28 min, and earn all 64 Gb RAM memory on server<br>
OOM killed other procecces !</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="top - 22:47:04 up 23 days, 12:39,  0 users,  load average: 2.49, 2.65, 4.53
Tasks:  68 total,   4 running,  64 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.8 us, 41.2 sy,  0.0 ni, 52.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 65646916 total,        0 free, 64420964 used,  1225952 buff/cache
KiB Swap:   524288 total,   500544 free,    23744 used.   804202 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
23218 robot     20   0 11.355g 0.011t   1860 S  36.0 17.7   0:01.10 ansible-playboo
23269 robot     20   0 11.355g 0.011t   1860 S  35.3 17.7   0:01.06 ansible-playboo
23240 robot     20   0 11.355g 0.011t   1860 S  29.3 17.7   0:00.88 ansible-playboo
23213 robot     20   0 11.355g 0.011t   1860 S  28.7 17.7   0:01.04 ansible-playboo
23212 robot     20   0 11.355g 0.011t   1860 S  24.0 17.7   0:00.93 ansible-playboo
25800 robot     20   0 11.354g 0.011t   5968 S  17.0 17.7   4:55.41 ansible-playboo"><pre class="notranslate"><code class="notranslate">top - 22:47:04 up 23 days, 12:39,  0 users,  load average: 2.49, 2.65, 4.53
Tasks:  68 total,   4 running,  64 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.8 us, 41.2 sy,  0.0 ni, 52.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 65646916 total,        0 free, 64420964 used,  1225952 buff/cache
KiB Swap:   524288 total,   500544 free,    23744 used.   804202 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
23218 robot     20   0 11.355g 0.011t   1860 S  36.0 17.7   0:01.10 ansible-playboo
23269 robot     20   0 11.355g 0.011t   1860 S  35.3 17.7   0:01.06 ansible-playboo
23240 robot     20   0 11.355g 0.011t   1860 S  29.3 17.7   0:00.88 ansible-playboo
23213 robot     20   0 11.355g 0.011t   1860 S  28.7 17.7   0:01.04 ansible-playboo
23212 robot     20   0 11.355g 0.011t   1860 S  24.0 17.7   0:00.93 ansible-playboo
25800 robot     20   0 11.354g 0.011t   5968 S  17.0 17.7   4:55.41 ansible-playboo
</code></pre></div>