<p dir="auto">The problem described in the issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="264799360" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/31620" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/31620/hovercard" href="https://github.com/ansible/ansible/issues/31620">#31620</a> still persists. Please reopen the issue!</p>
<p dir="auto">Playbook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: provision server
  gather_facts: false
  hosts:
    - tag_role_{{ role }}

  roles:
    - { role: common, tags: [&quot;production&quot;, &quot;staging&quot;] }
    - { role: ruby193, tags: [&quot;production&quot;, &quot;staging&quot;] }
    - { role: deployer, tags: [&quot;production&quot;, &quot;staging&quot;] }
    - app

- name: upload assets to S3
  gather_facts: false
  hosts:
    - tag_role_{{ role }}[0]

  roles:
    - assets_sync"><pre class="notranslate"><code class="notranslate">- name: provision server
  gather_facts: false
  hosts:
    - tag_role_{{ role }}

  roles:
    - { role: common, tags: ["production", "staging"] }
    - { role: ruby193, tags: ["production", "staging"] }
    - { role: deployer, tags: ["production", "staging"] }
    - app

- name: upload assets to S3
  gather_facts: false
  hosts:
    - tag_role_{{ role }}[0]

  roles:
    - assets_sync
</code></pre></div>
<p dir="auto">Show tasks:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="system &quot;ansible-playbook ansible/app.yml ---list-tasks --private-key=~/.ssh/pd-app-server --inventory-file=ansible/hosts/ --tags='staging,web,queue'"><pre class="notranslate"><code class="notranslate">system "ansible-playbook ansible/app.yml ---list-tasks --private-key=~/.ssh/pd-app-server --inventory-file=ansible/hosts/ --tags='staging,web,queue'
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="playbook: ansible/app.yml

  play #1 (provision server):
    shell echo 'alias wpld=&quot;watch -n 0 \&quot;ps ax | grep unic\&quot;&quot;' &gt;&gt; {{bash_file}}
    shell echo 'alias pld=&quot;cd {{code_dir}}&quot;' &gt;&gt; {{bash_file}}
    shell echo 'alias rpld=&quot;sudo restart pipelinedeals&quot;' &gt;&gt; {{bash_file}}
    shell echo 'alias lpld=&quot;tail -f /var/log/syslog&quot;' &gt;&gt; {{bash_file}}
    create log dir
    move old logs and link dir
    restart rsyslog
    update apt
    install htop
    check if timezone has already been set up
    rm /etc/localtime
    link /etc/localtime
    install ntp
    install git
    Don't strict check github.com
    install build tools
    add repo for updated ruby
    install ruby193
    don't install docs
    install bundler
    use multiple cores in bundler
    install rake
    transfer deployer key
    install build tools
    add nginx log directory
    add apt repo for nginx
    install nginx and needed packages
    set up nginx.conf prod
    logrotate nginx
    start nginx
    check if then remote_syslog is installed
    install remote_syslog gem
    add log_files conf for papertrail
    check if remote_syslog is running
    start remote_syslog
    clone source code
    bundle install
    shell echo 'export RESQUE_PASSWORD=baggio77' &gt;&gt; /etc/environment
    install resque_web service
    start resque_web
    shell echo 'export RAILS_ENV={{rails_env}}' &gt;&gt; /etc/environment
    shell echo 'export RACK_ENV={{rails_env}}' &gt;&gt; /etc/environment
    shell echo 'export REDIS_NAMESPACE={{deploy_key}}' &gt;&gt; /etc/environment
    shell echo 'export GIT_BRANCH={{git_branch}}' &gt;&gt; /etc/environment
    shell echo 'export WEB_CONCURRENCY={{web_concurrency}}' &gt;&gt; /etc/environment
    install ruby build dependencies
    clone source code
    bundle install
    add database.yml
    create log dir
    touch log file
    install java
    remove old assets
    remove old assets
    remove old assets
    bundle assets
    drop in web Procfile
    drop in web .foreman
    drop in queue Procfile
    drop in queue .foreman
    drop in staging Procfile
    drop in staging .foreman
    install service
    get status of service
    start pipelinedeals service
    restart pipelinedeals service"><pre class="notranslate"><code class="notranslate">playbook: ansible/app.yml

  play #1 (provision server):
    shell echo 'alias wpld="watch -n 0 \"ps ax | grep unic\""' &gt;&gt; {{bash_file}}
    shell echo 'alias pld="cd {{code_dir}}"' &gt;&gt; {{bash_file}}
    shell echo 'alias rpld="sudo restart pipelinedeals"' &gt;&gt; {{bash_file}}
    shell echo 'alias lpld="tail -f /var/log/syslog"' &gt;&gt; {{bash_file}}
    create log dir
    move old logs and link dir
    restart rsyslog
    update apt
    install htop
    check if timezone has already been set up
    rm /etc/localtime
    link /etc/localtime
    install ntp
    install git
    Don't strict check github.com
    install build tools
    add repo for updated ruby
    install ruby193
    don't install docs
    install bundler
    use multiple cores in bundler
    install rake
    transfer deployer key
    install build tools
    add nginx log directory
    add apt repo for nginx
    install nginx and needed packages
    set up nginx.conf prod
    logrotate nginx
    start nginx
    check if then remote_syslog is installed
    install remote_syslog gem
    add log_files conf for papertrail
    check if remote_syslog is running
    start remote_syslog
    clone source code
    bundle install
    shell echo 'export RESQUE_PASSWORD=baggio77' &gt;&gt; /etc/environment
    install resque_web service
    start resque_web
    shell echo 'export RAILS_ENV={{rails_env}}' &gt;&gt; /etc/environment
    shell echo 'export RACK_ENV={{rails_env}}' &gt;&gt; /etc/environment
    shell echo 'export REDIS_NAMESPACE={{deploy_key}}' &gt;&gt; /etc/environment
    shell echo 'export GIT_BRANCH={{git_branch}}' &gt;&gt; /etc/environment
    shell echo 'export WEB_CONCURRENCY={{web_concurrency}}' &gt;&gt; /etc/environment
    install ruby build dependencies
    clone source code
    bundle install
    add database.yml
    create log dir
    touch log file
    install java
    remove old assets
    remove old assets
    remove old assets
    bundle assets
    drop in web Procfile
    drop in web .foreman
    drop in queue Procfile
    drop in queue .foreman
    drop in staging Procfile
    drop in staging .foreman
    install service
    get status of service
    start pipelinedeals service
    restart pipelinedeals service
</code></pre></div>
<p dir="auto">As you can see it doesn't show playbook <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3525397" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/2" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/2/hovercard" href="https://github.com/ansible/ansible/issues/2">#2</a>.</p>
<p dir="auto">This is what happened when I actually ran it...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [app | get status of service] *******************************************
changed: [ec2-54-234-223-73.compute-1.amazonaws.com]

TASK: [app | start pipelinedeals service] *************************************
changed: [ec2-54-234-223-73.compute-1.amazonaws.com]

TASK: [app | restart pipelinedeals service] ***********************************
skipping: [ec2-54-234-223-73.compute-1.amazonaws.com]

PLAY [upload assets to S3] ****************************************************

TASK: [assets_sync | upload assets to S3 bucket - deal-shared] ****************"><pre class="notranslate"><code class="notranslate">TASK: [app | get status of service] *******************************************
changed: [ec2-54-234-223-73.compute-1.amazonaws.com]

TASK: [app | start pipelinedeals service] *************************************
changed: [ec2-54-234-223-73.compute-1.amazonaws.com]

TASK: [app | restart pipelinedeals service] ***********************************
skipping: [ec2-54-234-223-73.compute-1.amazonaws.com]

PLAY [upload assets to S3] ****************************************************

TASK: [assets_sync | upload assets to S3 bucket - deal-shared] ****************
</code></pre></div>
<p dir="auto">That last task is from the 2nd playbook. I cut it off b/c it was doing something it shouldn't have. But it was running...</p>