I don't know if I have a syntax issue or a bug.  Thought before filing a 
bug I would see what you guys thought.  I have a bunch of roles/playbooks I 
wish to execute against new servers.  Here is what I have come up with.
ansible-2.4.3.0-1.el7.ans.noarch


Playbook:
---
- hosts: "{{ host }}"

  roles:
    - ansible_dependencies
    - aliases
    - cpu_utilization
    - dns_update
    - role: nagios
      install: yes
    - password_policy
    - sudoers
    - disable_NetworkManager
    - grub_cmdline_oracle_tuning
    - ldap_users
    - ps1_customize
    - vim_customize

  import_playbook:
    - /playbooks/one-offs/bash_history.yml -e host= "{{ host }}"
    - /playbooks/one-offs/dmesg_timestamps.yml -e host= "{{ host }}"
    - /playbooks/one-offs/grub_cmdline.yml -e host= "{{ host }}"
    - /playbooks/one-offs/update_gitlab_scripts.yml -e host= "{{ host }}"
    - /playbooks/one-offs/grub_timeout.yml -e host= "{{ host }}"
    - /playbooks/one-offs/update_sssd_ddns.yml -e host= "{{ host }}"
    - /playbooks/one-offs/authconfig_cleanup.yml -e host= "{{ host }}"
    - /playbooks/one-offs/change_timezone.yml -e host= "{{ host }}"
    - /playbooks/one-offs/firefox_no_gui.yml -e host= "{{ host }}"
    - /playbooks/one-offs/tcp_tuning.yml -e host= "{{ host }}"



*ERROR! Unexpected Exception, this is probably a bug: 'AnsibleSequence' 
object has no attribute 'strip'*
Details
ansible:/playbooks # ansible-playbook new_server_setup.yml -e 
host=ansible-oel6 -vvv
ansible-playbook 2.4.3.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u
'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible-playbook
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-16)]
Using /etc/ansible/ansible.cfg as config file
Parsed /etc/ansible/inventory/hosts inventory source with ini plugin
ERROR! Unexpected Exception, this is probably a bug: 'AnsibleSequence' 
object has no attribute 'strip'
the full traceback was:

Traceback (most recent call last):
  File "/bin/ansible-playbook", line 106, in <module>
    exit_code = cli.run()
  File "/usr/lib/python2.7/site-packages/ansible/cli/playbook.py", line 122, 
in run
    results = pbex.run()
  File 
"/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", 
line 82, in run
    pb = Playbook.load(playbook_path, variable_manager=self.
_variable_manager, loader=self._loader)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", 
line 54, in load
    pb._load_playbook_data(file_name=file_name, variable_manager=
variable_manager)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", 
line 99, in _load_playbook_data
    pb = PlaybookInclude.load(entry, basedir=self._basedir, variable_manager
=variable_manager, loader=self._loader)
  File 
"/usr/lib/python2.7/site-packages/ansible/playbook/playbook_include.py", 
line 43, in load
    return PlaybookInclude().load_data(ds=data, basedir=basedir, 
variable_manager=variable_manager, loader=loader)
  File 
"/usr/lib/python2.7/site-packages/ansible/playbook/playbook_include.py", 
line 58, in load_data
    new_obj = super(PlaybookInclude, self).load_data(ds, variable_manager, 
loader)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/base.py", line 245
, in load_data
    ds = self.preprocess_data(ds)
  File 
"/usr/lib/python2.7/site-packages/ansible/playbook/playbook_include.py", 
line 118, in preprocess_data
    self._preprocess_import(ds, new_ds, k, v)
  File 
"/usr/lib/python2.7/site-packages/ansible/playbook/playbook_include.py", 
line 141, in _preprocess_import
    items = split_args(v)
  File "/usr/lib/python2.7/site-packages/ansible/parsing/splitter.py", line 
161, in split_args
    args = args.strip()
AttributeError: 'AnsibleSequence' object has no attribute 'strip'


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6512971a-d505-40ca-b431-75c508923762%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to