Czy istnieje sposób na uruchomienie tylko jednego zadania w poradniku ansibli?
Na przykład w roles/hadoop_primary/tasks/hadoop_master.yml
. Mam "start hadoop job tracker services"
zadanie. Czy mogę po prostu uruchomić to jedno zadanie?
Plik hadoop_master.yml:
---
# Playbook for Hadoop master servers
- name: Install the namenode and jobtracker packages
apt: name={{item}} force=yes state=latest
with_items:
- hadoop-0.20-mapreduce-jobtracker
- hadoop-hdfs-namenode
- hadoop-doc
- hue-plugins
- name: start hadoop jobtracker services
service: name=hadoop-0.20-mapreduce-jobtracker state=started
tags:
debug