Existe uma maneira de executar apenas uma tarefa no manual ansible?
Por exemplo, em roles/hadoop_primary/tasks/hadoop_master.yml
. Eu tenho "start hadoop job tracker services"
tarefa. Posso apenas executar essa tarefa?
arquivo 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