<commit_before>---
layout: post
title: "ansible-permission-error-with-copy-command-using-with-items-on-a-dictionary"
date: "2016-02-23 12:12:34 +0000"
---

# http://stackoverflow.com/questions/35577184/ansible-permission-error-with-copy-command-using-with-items-on-a-dictionary

I have the following YAML dictionaries defined for a set of glassfish config files that I need to copy as part of a deployment

    # glassfish config files
    glassfish_config_files:
      - { name: "config/domain.xml", owner: "{{ app_account }}", group: "{{ app_account }}", mode: "0640", state: "enabled" }<commit_msg>Update the URL link<commit_after>---
layout: post
title: "ansible-permission-error-with-copy-command-using-with-items-on-a-dictionary"
date: "2016-02-23 12:12:34 +0000"
---

# [ansible-permission-error-with-copy-command-using-with-items-on-a-dictionary](http://stackoverflow.com/questions/35577184/ansible-permission-error-with-copy-command-using-with-items-on-a-dictionary)

I have the following YAML dictionaries defined for a set of glassfish config files that I need to copy as part of a deployment

    # glassfish config files
    glassfish_config_files:
      - { name: "config/domain.xml", owner: "{{ app_account }}", group: "{{ app_account }}", mode: "0640", state: "enabled" }
{'fraction_non_alphanumeric': 0.14374514374514374, 'fraction_numerical': 0.046620046620046623, 'mean_word_length': 4.344398340248962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '836499', 'n_tokens_mistral': 460, 'n_tokens_neox': 408, 'n_words': 99}